/* ==================================================
   TELAS DE USUÁRIO (login, cadastro...) — ESTILO FINAL (cartão do C + campos do B + botão do A)
   Sem arco-íris: o destaque é só a cor --hoForte.
================================================== */

.auth {
    display: grid;
    place-items: center;
    padding: 15px;
    font-family: 'Montserrat', system-ui, sans-serif;    
}

.auth-form {
    display: grid;
    gap: 18px;
    
}

.campo {
    display: grid;
    gap: 8px;
}

/* Senha com o olhinho dentro do campo */
.campo-senha {
    position: relative;
}

.campo-senha input {
    padding-right: 48px;
}

.ver-senha {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7F8A9A;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background-color .2s ease;
}

.ver-senha:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, .06);
}

.ver-senha:focus-visible {
    outline: 2px solid #F4F6FA;
    outline-offset: 1px;
}

.ver-senha svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ver-senha .olho-fechado,
.ver-senha[aria-pressed="true"] .olho-aberto {
    display: none;
}
.ver-senha[aria-pressed="true"] .olho-fechado {
    display: block;
}

/* Preenchimento automático do navegador: mantém o fundo escuro */
.campo input:-webkit-autofill {
    -webkit-text-fill-color: #FFFFFF;
    -webkit-box-shadow: 0 0 0 100px #10141C inset;
    caret-color: #FFFFFF;
}

.form-erro svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: none;
    stroke: #FF5A5F;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Uma "tremidinha" de leve quando o erro aparece */
@keyframes erroTreme {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

.auth-botao {
    font: inherit;
    cursor: pointer;
}

.auth-botao:focus-visible {
    outline: 2px solid #F4F6FA;
    outline-offset: 3px;
}

.auth-rodape {
    margin: 22px 0 0;
    color: #8B95A5;
    font-size: .84rem;
    text-align: center;
}

.auth-rodape a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--hoForte, #A66BFF);
    transition: color .2s ease;
}

.auth-rodape a:hover {
    color: var(--hoForte, #A66BFF);
}

@media (prefers-reduced-motion: reduce) {
    .form-erro { animation: none; }
}

/* ==================================================
   ESTILO FINAL — mistura dos três
     Cartão ........ do C (borda fina, fundo sólido escuro)
     Campos ........ do B (só a linha de baixo, acende na cor do site)
     Botão ......... do A (cheio na cor --hoForte)
================================================== */

/* ---------- Cartão (C) ---------- */

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 28px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: #000000;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 30px 70px -30px rgba(0, 0, 0, .95);
}

.auth-titulo {
    margin: 0 0 8px;
    color: #FFFFFF;
    font-family: 'Outfit', 'Montserrat', system-ui, sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
}

.auth-sub {
    margin: 0 0 30px;
    color: #8B95A5;
    font-size: .86rem;
    text-align: center;
}


/* ---------- Campos (B) ---------- */

.auth-form {
    gap: 24px;
}

.campo {
    gap: 4px;
}

.campo label {
    color: #7F8A9A;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    transition: color .2s ease;
}

/* O rótulo acende junto quando o campo está em foco */
.campo:focus-within label {
    color: var(--hoForte, #A66BFF);
}

.campo input {
    width: 100%;
    height: 44px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0;
    background: transparent;
    color: #FFFFFF;
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.campo input:hover {
    border-bottom-color: rgba(255, 255, 255, .35);
}

.campo input:focus {
    outline: none;
    border-bottom-color: var(--hoForte, #A66BFF);
    box-shadow:
        0 1px 0 0 var(--hoForte, #A66BFF),
        0 8px 16px -12px var(--hoForte, #A66BFF);
}

/* Preenchimento automático: mesmo fundo do cartão */
.campo input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px #0D1118 inset;
}

.campo-senha input {
    padding-right: 44px;
}

.ver-senha {
    right: 0;
}

/* Erro (B): só uma barrinha vermelha do lado, sem caixa */
.form-erro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 2px 0 2px 12px;
    border-left: 2px solid #FF5A5F;
    color: #FFB3B6;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.45;
    animation: erroTreme .35s ease;
}


/* ---------- Botão (A) ---------- */

.auth-botao {
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: var(--hoForte, #A66BFF);
    color: #FFFFFF;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px -12px var(--hoForte, #A66BFF);
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.auth-botao:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px var(--hoForte, #A66BFF);
}


/* ---------- Celular ---------- */

@media (max-width: 480px) {
    .auth { padding: 28px 12px 48px; }
    .auth-card { padding: 30px 22px 24px; }
}


/* ---------- "Esqueceu a senha?" ao lado do rótulo Senha ---------- */

.campo-rotulo {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.link-esqueci {
    color: #8B95A5;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.link-esqueci:hover {
    color: var(--hoForte, #A66BFF);
}

.link-esqueci:focus-visible {
    outline: 2px solid #F4F6FA;
    outline-offset: 2px;
    border-radius: 3px;
}