/* Estilos compartilhados pelas telas de autenticacao:
   login, recuperar senha e redefinir senha. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:    #004080;
    --navy-d:  #0f2540;
    --orange:  #ff6600;
    --orange-d:#d35502;
    --line:    #e8ecf2;
    --t1:      #0f2540;
    --t2:      #64748b;
    --t3:      #b9c3d0;
}

html, body { height: 100%; }
body {
    min-height: 100dvh;
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: var(--t1);
    -webkit-font-smoothing: antialiased;
}

/* ── Divisão: formulário (esq.) + ilustração (dir.) ── */
.split { display: flex; min-height: 100dvh; }

.side-form {
    flex: 0 0 44%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    padding: 46px 58px;
    background: #fff;
}

.side-art {
    flex: 1 1 auto;
    position: relative;
    background: var(--navy);
    overflow: hidden;
}
.side-art .iso {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Marca (lockup minimalista) ── */
.brand { width: 134px; animation: fade .5s both; }
.brand-logo { display: block; height: 27px; overflow: hidden; }
.brand-logo img { display: block; height: 39px; width: auto; margin-left: -2px; }
.brand-sub {
    display: block;
    text-align: center;
    margin-top: 3px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 3.1px;
    color: var(--navy);
}

/* ── Área central (centraliza verticalmente, cede quando falta espaço) ── */
.form-area {
    width: 100%;
    max-width: 390px;
    margin: auto 0;
    padding: 40px 0;
    animation: rise .5s .06s both;
}

.h-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1.3px;
    line-height: 1.05;
    color: var(--t1);
}
.h-sub {
    margin-top: 9px;
    font-size: 13px;
    color: var(--t2);
}

/* ── Erro ── */
.erro {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    padding: 11px 14px;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    color: #b91c1c;
    font-size: 12.5px;
    font-weight: 500;
}
.erro svg { flex-shrink: 0; margin-top: 1px; }

/* ── Campos (label à esquerda, linha embaixo) ── */
.fields { margin-top: 34px; }

.field {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1.5px solid var(--line);
    transition: border-color .18s;
}
.field:focus-within { border-bottom-color: var(--navy); }
.field label {
    font-size: 12px;
    font-weight: 600;
    color: #1f3350;
}
.field input {
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--t1);
    padding: 3px 0;
}
.field input::placeholder { color: var(--t3); }

.btn-olho {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--t3);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.btn-olho:hover { color: var(--navy); }
.btn-olho:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ── Ação ── */
.actions { display: flex; justify-content: flex-end; margin-top: 30px; }
.btn-entrar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border: none;
    border-radius: 4px;
    background: var(--orange);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .15s, transform .12s;
}
.btn-entrar:hover  { background: var(--orange-d); transform: translateY(-1px); }
.btn-entrar:active { transform: translateY(0); }
.btn-entrar:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ── Rodapé (fica no fim, sem sobrepor o formulário) ── */
.foot {
    font-size: 11px;
    color: #9aa6b5;
    letter-spacing: .2px;
}
.foot a { color: var(--t2); text-decoration: none; transition: color .15s; }
.foot a:hover { color: var(--navy); }

/* ── Sobreposição da ilustração ── */
.art-card {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 19px 30px;
    font-size: 12.5px;
    color: var(--t2);
}
.art-card strong { color: var(--navy); font-weight: 600; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Responsivo ── */
@media (max-width: 980px) {
    .split { flex-direction: column; }
    .side-art { flex: 0 0 190px; order: -1; }
    .art-card { display: none; }

    .side-form {
        flex: 1 1 auto;
        max-width: none;
        padding: 28px 24px 24px;
    }

    /* conteúdo alinhado ao topo (sem os vãos gerados pela centralização)
       e rodapé empurrado para a base */
    .form-area { max-width: none; margin: 24px 0 0; padding: 0; }
    .foot { margin-top: auto; padding-top: 30px; text-align: center; }

    .h-title { font-size: 30px; letter-spacing: -.8px; }
    .h-sub { font-size: 13.5px; }

    /* label acima do campo: input ganha a largura toda */
    .fields { margin-top: 26px; }
    .field {
        grid-template-columns: 1fr auto;
        gap: 4px 10px;
        padding: 11px 0 13px;
    }
    .field label {
        grid-column: 1 / -1;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: var(--t2);
    }
    /* 16px evita o zoom automático do iOS ao focar o campo */
    .field input { font-size: 16px; padding: 5px 0; }
    .btn-olho { padding: 10px; margin: -10px -8px -10px 0; }

    /* botão ocupa a largura toda — alvo de toque confortável */
    .actions { margin-top: 26px; }
    .btn-entrar { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }
}
@media (max-width: 460px) {
    .side-art { flex: 0 0 150px; }
    .side-form { padding: 24px 20px 20px; }
    .h-title { font-size: 26px; }
}
/* telas baixas (celular deitado): encolhe a faixa da arte */
@media (max-width: 980px) and (max-height: 560px) {
    .side-art { flex: 0 0 110px; }
    .form-area { margin-top: 16px; }
}

/* ── Extras das telas de recuperação de senha ── */
.link-voltar {
    font-size: 13px;
    color: var(--t2);
    text-decoration: none;
    align-self: center;
    margin-right: auto;
    transition: color .15s;
}
.link-voltar:hover { color: var(--navy); }

.ok-mark {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(22,163,74,.1); color: #16a34a;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}

.dica { margin-top: 8px; font-size: 12px; color: var(--t3); }

@media (max-width: 980px) {
    .link-voltar { margin-right: 0; align-self: flex-start; }
    .actions { flex-wrap: wrap; gap: 12px; }
}
