.auth-layout {

    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;

}


/* ==========================================
   BANNER LATERAL
========================================== */

.auth-banner {

    background: linear-gradient(145deg,
            #0b506f,
            #006fa8,
            #007bb5);

    color: white;

    padding: 48px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.brand {

    display: flex;
    align-items: center;
    gap: 14px;

    font-size: 27px;
    font-weight: 800;

}

.brand-icon {

    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);

}

.banner-content {

    max-width: 540px;

}

.banner-tag {

    display: inline-block;

    background: rgba(255, 255, 255, 0.12);

    padding: 8px 16px;
    border-radius: 30px;

    font-size: 13px;
    margin-bottom: 25px;

}

.banner-content h1 {

    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.15;

    letter-spacing: -2px;

    margin-bottom: 24px;

}

.banner-content p {

    color: #dff2fc;
    font-size: 17px;

}

.banner-benefits {

    display: flex;
    flex-direction: column;

    gap: 14px;

    margin-top: 35px;

    font-size: 15px;

}

.banner-footer {

    color: #b9e1f5;
    font-size: 13px;

}


/* ==========================================
   FORMULARIO
========================================== */

.auth-content {

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;

    padding: 40px;

}

.auth-card {

    width: 100%;
    max-width: 420px;

}

.mobile-brand {

    display: none;

}

.auth-heading {

    margin-bottom: 32px;

}

.auth-heading h2 {

    font-size: 30px;
    letter-spacing: -1px;

    margin-bottom: 8px;

}

.auth-heading p {

    color: var(--muted);
    font-size: 15px;

}

.password-wrapper {

    position: relative;

}

.password-wrapper input {

    padding-right: 85px;

}

.password-toggle {

    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    background: transparent;
    border: none;

    color: var(--primary);

    font-size: 12px;
    font-weight: 600;

}

.auth-options {

    display: flex;
    justify-content: flex-end;

    margin-bottom: 24px;

    font-size: 14px;

}

.auth-divider {

    display: flex;
    align-items: center;

    gap: 15px;

    margin: 30px 0;

    color: var(--muted);
    font-size: 13px;

}

.auth-divider::before,
.auth-divider::after {

    content: '';

    flex: 1;
    height: 1px;

    background: var(--border);

}

.auth-register {

    text-align: center;
    font-size: 14px;

}

.auth-register p {

    color: var(--muted);
    margin-bottom: 8px;

}

.auth-register a {

    font-weight: 700;

}

.auth-footer {

    margin-top: 45px;

    text-align: center;

    font-size: 12px;
    color: var(--muted);

}


/* ==========================================
   RESPONSIVIDADE
========================================== */

@media (max-width: 850px) {

    .auth-layout {

        grid-template-columns: 1fr;

    }

    .auth-banner {

        display: none;

    }

    .auth-content {

        min-height: 100vh;
        padding: 28px;

    }

    .mobile-brand {

        display: block;

        font-size: 27px;
        font-weight: 800;

        color: var(--primary);

        margin-bottom: 40px;

    }

    .auth-heading h2 {

        font-size: 27px;

    }

}


/* ==========================================
   CADASTRO E CONFIRMACAO
========================================== */

.auth-steps {

    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 35px;

}

.auth-step {

    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);

    font-size: 13px;
    font-weight: 600;

}

.auth-step span {

    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #f1f5f9;
    color: var(--muted);

}

.auth-step.active {

    color: var(--primary);

}

.auth-step.active span {

    background: var(--primary);
    color: white;

}

.auth-step.completed span {

    background: #dff2fc;
    color: #006fa8;

}

.step-line {

    flex: 1;
    height: 2px;

    background: var(--border);

}


/* ==========================================
   FORCA DA SENHA
========================================== */

.password-strength {

    display: flex;
    flex-direction: column;
    gap: 6px;

}

.password-strength progress {

    appearance: none;

    width: 100%;
    height: 5px;

    border: none;
    border-radius: 10px;

    overflow: hidden;

    background: #e2e8f0;

}

.password-strength progress::-webkit-progress-bar {

    background: #e2e8f0;

}

.password-strength progress::-webkit-progress-value {

    background: #007bb5;
    border-radius: 10px;

}

.password-strength progress::-moz-progress-bar {

    background: #007bb5;

}

.password-strength progress.fraca::-webkit-progress-value {

    background: #ef4444;

}

.password-strength progress.media::-webkit-progress-value {

    background: #f59e0b;

}

.password-strength progress.fraca::-moz-progress-bar {

    background: #ef4444;

}

.password-strength progress.media::-moz-progress-bar {

    background: #f59e0b;

}

.password-strength small {

    color: var(--muted);
    font-size: 11px;

}


/* ==========================================
   CONFIRMACAO DE EMAIL
========================================== */

.verification-icon {

    display: grid;
    place-items: center;

    width: 75px;
    height: 75px;

    border-radius: 22px;

    background: #dff2fc;
    color: #006fa8;

    font-size: 38px;

    margin-bottom: 25px;

}

.verification-code {

    text-align: center;

    font-size: 30px !important;
    font-weight: 700;

    letter-spacing: 12px;

    padding: 18px 8px !important;

}

.verification-code::placeholder {

    color: #cbd5e1;

}

.form-group small {

    color: var(--muted);
    font-size: 12px;

}

.resend-area {

    text-align: center;

    margin: 25px 0;

    font-size: 14px;

}

.resend-area p {

    color: var(--muted);
    margin-bottom: 8px;

}

.text-button {

    border: none;
    background: transparent;

    color: var(--primary);

    font-size: 14px;
    font-weight: 600;

}

.text-button:hover {

    text-decoration: underline;

}

.text-button:disabled {

    color: var(--muted);
    text-decoration: none;

}

.verification-link {

    margin-top: 18px;

}


/* ==========================================
   CONTA CONFIRMADA
========================================== */

.success-icon {

    margin: 0 auto 25px;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    font-size: 45px;

}

.success-content {

    text-align: center;

    margin-bottom: 30px;

}

.success-content h2 {

    font-size: 28px;
    margin-bottom: 12px;

}

.success-content p {

    color: var(--muted);
    font-size: 15px;

}

@media (max-width: 480px) {

    .auth-steps {

        gap: 10px;

    }

    .auth-step {

        font-size: 12px;

    }

    .verification-code {

        font-size: 26px !important;
        letter-spacing: 9px;

    }

}


/* ==========================================
   RECUPERACAO DE SENHA
========================================== */

.recovery-steps {

    gap: 10px;

}

.recovery-steps .auth-step {

    font-size: 12px;

    white-space: nowrap;

}

.recovery-steps .auth-step span {

    flex-shrink: 0;

}

.recovery-back {

    margin-top: 25px;

}

.recovery-email {

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 15px;

    margin-bottom: 25px;

    background: #f8fafc;

    border: 1px solid var(--border);
    border-radius: 10px;

}

.recovery-email small {

    color: var(--muted);
    font-size: 11px;

}

.recovery-email strong {

    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    overflow-wrap: anywhere;

}

.recovery-notice {

    padding: 14px;

    margin-bottom: 22px;

    border: 1px solid #b9e1f5;
    border-radius: 10px;

    background: #edf7fc;

    color: #006fa8;

    font-size: 12px;
    line-height: 1.6;

}


/* ==========================================
   RESPONSIVIDADE
========================================== */

@media (max-width: 480px) {

    .recovery-steps {

        gap: 6px;

    }

    .recovery-steps .auth-step {

        flex-direction: column;

        gap: 5px;

        font-size: 10px;

    }

    .recovery-steps .step-line {

        align-self: flex-start;

        margin-top: 15px;

    }

}

/* ==========================================
   ACEITE DOS DOCUMENTOS LEGAIS
========================================== */

.legal-acceptance {

    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 14px;
    margin: 0 0 22px;

    min-width: 0;

}

.legal-acceptance legend {

    padding: 0 6px;

    font-size: 13px;
    font-weight: 600;

}

.legal-check {

    display: flex;
    align-items: flex-start;

    gap: 10px;

    font-size: 13px;
    line-height: 1.6;

}

.legal-check+.legal-check {

    margin-top: 12px;

}

.legal-check input[type="checkbox"] {

    appearance: auto;

    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin: 2px 0 0;
    padding: 0;

    accent-color: var(--primary);

}

.legal-check a {

    color: var(--primary);

    text-decoration: underline;
    font-weight: 600;

}

.legal-check input:focus-visible {

    outline: 2px solid var(--primary);
    outline-offset: 3px;

}

/* Identidade compartilhada das telas de autenticacao */
body:has(.auth-layout) {
    --primary: #0075ad;
    --primary-dark: #005a85;
    --text: #142434;
    --muted: #52677e;
    --border: #d6e2eb;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    background: #f3f7fa;
}

.auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100dvh;
}

.auth-banner {
    padding: clamp(32px, 5vw, 76px);
    gap: 48px;
    background: linear-gradient(150deg, #0b4565, #086c98);
}

.auth-banner .brand {
    color: white;
    text-decoration: none;
}

.brand,
.mobile-brand,
h1,
h2 {
    font-family: Outfit, Arial, sans-serif;
}

.brand-icon {
    background: #009fe3;
    color: white;
    flex-shrink: 0;
    font-size: 29px;
}

.banner-tag {
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.banner-content h1 {
    font-weight: 600;
    letter-spacing: -1.6px;
}

.banner-content p {
    line-height: 1.8;
}

.banner-benefits span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-benefits i {
    font-size: 23px;
    color: #bceaff;
}

.auth-content {
    min-width: 0;
    padding: clamp(24px, 5vw, 72px);
    background: #f3f7fa;
}

.auth-card {
    max-width: 480px;
    min-width: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(24px, 3vw, 40px);
    box-shadow: 0 12px 45px #123b5810;
}

.auth-heading h2 {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
}

.auth-heading p {
    line-height: 1.7;
}

.auth-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

.auth-layout .form-group input:not([type=checkbox]) {
    min-height: 50px;
    border-radius: 12px;
    font-size: 14px;
}

.auth-layout .form-group input:focus {
    box-shadow: 0 0 0 3px #0075ad18;
}

.input-icon {
    position: relative;
}

.input-icon>i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #67869b;
    pointer-events: none;
}

.auth-layout .input-icon input {
    padding-left: 46px;
}

.auth-layout .password-wrapper input {
    padding-right: 85px;
}

.password-toggle {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.password-toggle i {
    font-size: 21px;
}

.auth-layout .btn-primary {
    min-height: 50px;
    border-radius: 12px;
}

.auth-footer {
    margin-top: 30px;
    line-height: 1.7;
}

.auth-layout :focus-visible {
    outline: 2px solid #009fe3;
    outline-offset: 3px;
}

@media(max-width:850px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-content {
        min-height: 100dvh;
        padding: 20px 16px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 26px;
        color: #142434;
        text-decoration: none;
    }

    .mobile-brand .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .auth-heading h2 {
        font-size: 29px;
    }
}

@media(max-width:360px) {
    .auth-content {
        padding: 12px;
    }

    .auth-card {
        padding: 20px 16px;
    }

    .auth-steps {
        gap: 5px;
    }
}