* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    overflow-y: scroll;
}



body {
    background: #ffffff;
    margin: 0;
    min-height: 100vh;

}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 40px 28px 32px;
}

/* ===== TÍTULO ===== */
h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0A1629;
}

.subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    text-wrap: balance;
    /* 🔥 distribui melhor as palavras */

}

.subtitle a {
    color: #5196f0;
    text-decoration: none;
    font-weight: 600;
}

.subtitle a:hover {
    color: #84b5f7;

}


/* ===== CAMPOS ===== */
.field {
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    font-weight: 500;
    color: #66687C;
    margin-bottom: 6px;
    display: block;
}

/* Wrapper do input */
.input-wrapper {
    position: relative;
}

/* Input */
.input-wrapper input {
    width: 100%;
    height: 48px;
    padding-left: 46px;
    padding-right: 46px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    color: #66687C;
    outline: none;
}



.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus {
    border-color: #5196f0;
    box-shadow: 0 0 0 1px #5196f0;



}

.input-icon {
    opacity: 0.65;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* quando o input estiver em foco */
.input-wrapper:focus-within .input-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(41%) sepia(86%) saturate(2100%) hue-rotate(200deg) brightness(96%) contrast(96%);
}


/* ÍCONE ESQUERDO (imagem) */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.65;
    pointer-events: none;
}

/* BOTÃO MOSTRAR / OCULTAR SENHA */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.toggle-password img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toggle-password:hover img {
    opacity: 1;
}

.password-strength {
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.password-strength.visible {
    opacity: 1;
}

.strength-bar {
    display: flex;
    gap: 6px;
}

.strength-bar .segment {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    /* cinza padrão */
    transition: background-color 0.3s ease;
}

/* estados */
.segment.weak {
    background: #facc15;
    /* amarelo */
}

.segment.medium {
    background: #eab308;
    /* amarelo mais forte */
}

.segment.strong {
    background: #22c55e;
    /* verde */
}

.strength-text {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}



/* ===== OPÇÕES ===== */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 24px;
}

/* ===== CHECKBOX CUSTOM ===== */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #66687C;
    cursor: pointer;
    user-select: none;
}

/* Esconde o checkbox nativo */
.remember input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Caixa visual */

.custom-checkbox {
    position: relative;

    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Check (✓) */
.custom-checkbox::after {
    content: "✓";
    position: absolute;
    top: 1%;
    /* 👈 desce o check */
    left: 25%;
    transform: translate(-50%, -50%) scale(0.6);
    font-size: 8px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0;
    transition: all 0.15s ease;
}

/* Quando estiver marcado */
.remember input:checked+.custom-checkbox {
    background: #5196f0;
}

.remember input:checked+.custom-checkbox::after {
    opacity: 1;
    transform: scale(1.4);
}



.forgot {
    font-weight: 600;
    font-size: 13px;
    color: #5196f0;
    text-decoration: none;
}

.forgot:hover {
    color: #84b5f7;

}

/* ===== BOTÃO PRINCIPAL ===== */
.btn-primary {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    background: #18181A;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow:
        0 10px 25px rgba(2, 6, 23, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}


.btn-primary:hover {
    background-color: #232327;
    transform: scale(1.03);
    filter: brightness(1.08);
}

/* Estado bloqueado */
.btn-primary.locked,
.btn-primary.locked:hover,
.btn-primary.locked:active {
    background: #d9d9da;
    /* 🔥 use background, não background-color */
    color: #adb1b8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    transform: none;
    filter: none;
}


.btn-secondary-action {
    background: transparent;
    color: #5196f0;
    box-shadow: none;
    border: none;
    height: 44px;
}

.btn-secondary-action:hover {
    background: transparent;
    color: #84b5f7;
    transform: none;
    filter: none;
}


/* ============================= */
/* EMAIL VERIFICATION – DEBUG UI */
/* ============================= */


.email-verification {
    padding-top: 40px;

    width: 100%;
}

.email-verification h1,
.email-verification .subtitle {
    text-align: center;
}


/* título */
.email-verification h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0A1629;
}

/* subtítulo */
.email-verification .subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}


h1 .title-icon img {
    width: 28px;
    height: 28px;
    /* ajuste fino de alinhamento */
}

/* Mobile */
@media (max-width: 480px) {
    h1 .title-icon img {
        width: 20px;
        height: 20px;
    }
}


/* ================= */
/* CÓDIGO DE VERIF. */
/* ================= */
.code-inputs {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}


.code-input {
    width: 48px;
    height: 56px;

    font-size: 22px;
    font-weight: 600;
    text-align: center;

    border-radius: 10px;
    border: 1px solid #cbd5e1;
    outline: none;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-input:focus {
    border-color: #5196f0;
    box-shadow: 0 0 0 2px #5196f0;
}


@media (max-width: 900px) {



    h1 .title-icon img {
        width: 22px;
        height: 22px;
        /* ajuste fino de alinhamento */
    }

    .email-verification h1 {
        font-size: 22px;
    }

    .email-verification .subtitle {
        font-size: 13px;
        /* 👈 limite visual */
    }

    .verification-actions {
        margin-top: 22px;
    }

    .btn-secondary-action {
        height: 28px;
        font-size: 13px;
    }
}


@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.email-verification h1,
.email-verification .subtitle,
.email-verification .verification-actions {
    opacity: 0;
    animation: fadeScale 0.45s ease-out forwards;
}

.email-verification h1 {
    animation-delay: 0.05s;
}

.email-verification .subtitle {
    animation-delay: 0.15s;
}

.email-verification .verification-actions {
    animation-delay: 0.25s;
}



/* ================= */
/* BOTÃO + REENVIO */
/* ================= */

#confirmCode {
    margin-top: 8px;
}

.resend {
    width: 100%;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.email-verification {
    width: 100%;
}

.email-verification>* {
    width: 100%;
}


.resend a {
    color: #5196f0;
    font-weight: 600;
    text-decoration: none;
}

.resend a:hover {
    text-decoration: underline;
}

/* ===== DIVISOR ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 22px;
    font-size: 13px;
    color: #64748b;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ===== SOCIAIS ===== */
.social-buttons {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #0A1629;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.btn-social:hover {
    transform: scale(1.03);
    filter: brightness(1.08);
    background-color: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.btn-social img {
    width: 18px;
    height: 18px;
}

/* ===== TERMOS ===== */
.terms {
    margin-top: 26px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.terms a {
    color: #5196f0;
    text-decoration: none;
}

.error-text {
    color: #f76276;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 900px) {

    /* Título */
    h1 {
        font-size: 22px;
    }

    /* Subtítulo */
    .subtitle {
        font-size: 12px;
        margin-bottom: 22px;
    }

    .subtitle a {
        font-size: 12px;
    }

    /* Labels */
    label {
        font-size: 12px;
    }

    /* Inputs */
    .input-wrapper input {
        font-size: 13px;
    }

    /* Placeholder */
    .input-wrapper input::placeholder {
        font-size: 12px;
    }

    /* Checkbox texto */
    .remember {
        font-size: 12px;
    }

    /* Esqueceu senha */
    .forgot {
        font-size: 12px;
    }

    /* Botão principal */
    .btn-primary {
        font-size: 13px;
    }

    /* Divisor */
    .divider {
        font-size: 12px;
    }

    /* Botões sociais */
    .btn-social {
        font-size: 13px;
    }

    /* Termos */
    .terms {
        font-size: 11px;
    }

    /* Erros */
    .error-text {
        font-size: 11px;
    }
}

.auth-container {
    min-height: 100vh;
}


/* ===== LAYOUT GERAL ===== */
.auth-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: stretch;
    overflow: hidden;
    /* 🔥 importantíssimo */

    /* 🔥 importante */
}

/* padrão → login */
.auth-login .auth-layout {
    flex-direction: row;
}

/* invertido → cadastro */
.auth-register .auth-layout {
    flex-direction: row-reverse;
}

/* ===== LADO DO FORM ===== */
.auth-form {
    overflow-y: auto;
    /* se passar de 100vh */

    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
}


.auth-stepper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;

    display: flex;
    justify-content: flex-start;

    min-height: 100vh;
}



.step {
    width: 100%;
    display: none;
}

.auth-stepper.show-form .step-form {
    display: block;
}

.auth-stepper.show-verification .step-verification {
    display: block;
}


/* ===== LADO DA IMAGEM ===== */
.auth-image {
    flex: 1;
    position: relative;
    background-color: #18181A;
    background-size: cover;
    background-position: center;
    color: #ffffff;

    display: flex;
    min-height: 100vh;
    overflow: auto;
    padding: 15px 0px;

}

/* Conteúdo sobre a imagem */
.image-overlay {
    margin-left: clamp(40px, 8vw, 15%);
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 520px;

    display: grid;
    grid-template-rows: 1fr auto 1fr;
    /* 🔑 */

}

.image-content {
    margin-left: 40px;
    max-height: 100vh;
    padding: 48px;

    grid-row: 2;
}




.auth-image h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.auth-image h2 span {
    background: linear-gradient(90deg,
            #5f9ff1 0%,
            #8a7bf7 50%,
            #a67bf7 75%,
            #c57bf7 100%);

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}

.auth-image p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5f5;
}

.hero-text {
    margin-top: 120px;
    position: relative;
    max-width: 520px;
    margin-bottom: 80px;
}

/* BLUSH / GLOW */
.hero-text::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center,
            #2a2a33 0%,
            #26262b 30%,
            #19181a 45%,
            transparent 70%);
    filter: blur(90px);
    z-index: 0;
}

/* Texto acima do glow */
.hero-text h2,
.hero-text p {
    position: relative;
    z-index: 1;
}



/* ===== BRAND ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* quadrado cinza */
.brand img {

    width: 36px;
    height: 36px;
    padding: 10px;

    background: #252527;
    /* cinza escuro translúcido */
    border-radius: 10px;

    /* deixa o ícone branco */

    /* opcional: leve brilho igual ao exemplo */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.35),
}



.brand span {

    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

/* ===== MÉTRICAS ===== */
.stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat strong {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.stat span {
    font-size: 13px;
    color: #cbd5f5;
    opacity: 0.9;
}


/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .auth-image {
        display: none;
    }

    .auth-form {
        flex: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand,
.hero-text,
.stats {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.brand {
    animation-delay: 0.2s;
}

.hero-text {
    animation-delay: 0.45s;
}

.stats {
    animation-delay: 0.7s;
}

.stat strong {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.9s;
}

.stat:nth-child(1) strong {
    animation-delay: 0.9s;
}

.stat:nth-child(2) strong {
    animation-delay: 1.05s;
}

.stat:nth-child(3) strong {
    animation-delay: 1.2s;
}