body.cadastro-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.75), transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(116,84,55,.08), transparent 30%),
        linear-gradient(135deg, #eee1ca 0%, #f8f0df 48%, #e8d6b8 100%);
}

.cadastro-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 42px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cadastro-card {
    position: relative;
    width: min(100%, 470px);
    padding: 38px 42px 32px;
    background:
        linear-gradient(rgba(255,250,238,.96), rgba(248,238,217,.96)),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 28px,
            rgba(115,86,55,.035) 29px
        );
    border: 1px solid rgba(112,82,50,.22);
    border-radius: 4px;
    box-shadow:
        0 18px 45px rgba(73,48,28,.16),
        0 3px 8px rgba(73,48,28,.08);
}

.cadastro-card::before,
.cadastro-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.cadastro-card::before {
    inset: 9px;
    border: 1px solid rgba(117,85,52,.12);
}

.cadastro-card::after {
    width: 52px;
    height: 52px;
    top: -18px;
    right: 24px;
    background:
        linear-gradient(135deg, transparent 48%, rgba(139,104,71,.2) 49%, rgba(139,104,71,.2) 51%, transparent 52%);
    opacity: .55;
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #6d4d32;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .04em;
}

.brand-mark {
    font-size: 23px;
}

.cadastro-heading {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 25px 0 26px;
}

.heading-decoration {
    display: block;
    color: #9a754d;
    font-size: 13px;
    margin-bottom: 7px;
    letter-spacing: .3em;
}

.cadastro-heading h1 {
    color: #3e2d20;
    font-size: clamp(28px, 6vw, 34px);
    font-weight: 500;
    line-height: 1.15;
}

.cadastro-heading p {
    margin-top: 8px;
    color: #806b57;
    font-size: 15px;
}

.message {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 3px;
    font-size: 14px;
}

.message p {
    margin: 0;
}

.message-error {
    background: rgba(142, 62, 50, .08);
    border: 1px solid rgba(142, 62, 50, .22);
    color: #7b392f;
}

.message-success {
    background: rgba(67, 105, 68, .09);
    border: 1px solid rgba(67, 105, 68, .22);
    color: #416342;
}

.cadastro-form {
    position: relative;
    z-index: 1;
}

.field {
    margin-bottom: 17px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: #4d3828;
    font-size: 14px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #987653;
    font-size: 17px;
    line-height: 1;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    min-height: 49px;
    padding: 12px 45px 12px 42px;
    color: #3b2b20;
    background: rgba(255,255,255,.54);
    border: 1px solid rgba(108,78,48,.27);
    border-radius: 3px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.input-wrap input::placeholder {
    color: #a49380;
}

.input-wrap input:focus {
    background: rgba(255,255,255,.82);
    border-color: #8b6847;
    box-shadow: 0 0 0 3px rgba(139,104,71,.10);
}

.password-toggle {
    position: absolute;
    right: 7px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #8c6a4a;
    cursor: pointer;
    border-radius: 3px;
}

.password-toggle:hover {
    background: rgba(139,104,71,.08);
}

.password-toggle:focus-visible {
    outline: 2px solid #8b6847;
    outline-offset: 1px;
}

.password-hint {
    display: block;
    margin-top: 6px;
    color: #998570;
    font-size: 12px;
}

.submit-button {
    position: relative;
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border: 1px solid #65462e;
    border-radius: 3px;
    background: linear-gradient(180deg, #896748, #755438);
    color: #fffaf2;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 4px 10px rgba(78,52,31,.14);
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.submit-button span {
    margin-right: 7px;
}

.submit-button:hover {
    background: linear-gradient(180deg, #947153, #7b593c);
    box-shadow: 0 6px 14px rgba(78,52,31,.18);
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:focus-visible {
    outline: 2px solid #8b6847;
    outline-offset: 3px;
}

.divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 17px;
    color: #a18d77;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(110,80,49,.17);
}

.login-link {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #806c58;
    font-size: 14px;
}

.login-link a {
    color: #69482f;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(105,72,47,.3);
    text-underline-offset: 3px;
}

.login-link a:hover {
    color: #4d3423;
}

.back-home {
    position: relative;
    z-index: 1;
    display: block;
    width: fit-content;
    margin: 22px auto 0;
    color: #967b60;
    font-size: 13px;
}

.back-home:hover {
    color: #65462e;
}

.footer-note {
    margin-top: 18px;
    color: rgba(82,60,41,.62);
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

@media (max-width: 520px) {
    .cadastro-wrapper {
        padding: 25px 14px 20px;
    }

    .cadastro-card {
        padding: 32px 22px 27px;
    }

    .cadastro-heading {
        margin-top: 22px;
    }
}

@media (max-width: 360px) {
    .cadastro-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cadastro-heading h1 {
        font-size: 27px;
    }
}
