/* ============================================================================
   N8imob — telas de entrada (entrar, recuperar senha, redefinir senha)
   Mesma linguagem do painel: Sora, vidro sobre gradiente, marca por tenant
   (--brand/--navy vêm do <head>, injetados pelo layout).
   ============================================================================ */

:root {
    --brand: #0866FF;
    --navy: #102A47;   /* era violeta: a marca nao usa roxo */
    --ink: #111827;
    --soft: #4b5563;
    --faint: #98a2b3;
    --line: #e4e9f2;
    --radius: 1.1rem;
    --ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body.au {
    font-family: 'Sora', ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: #f4f7fc;
    -webkit-font-smoothing: antialiased;
}

/* ---------- estrutura ---------- */
.au-split { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.au-side {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding: 40px 24px 56px;
    background:
        radial-gradient(90% 70% at 15% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
        radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
        #f4f7fc;
}
.au-box { width: 100%; max-width: 392px; }

/* ---------- cabeçalho ---------- */
.au-logo { display: flex; align-items: center; width: fit-content; margin-bottom: 26px; }
.au-logo img { height: 2.1rem; width: auto; display: block; }
.au-eyebrow {
    display: table; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
    padding: .28rem .6rem; border-radius: 999px; margin-bottom: 14px;
}
.au-box h1 { margin: 0 0 8px; font-size: 1.72rem; line-height: 1.18; letter-spacing: -.02em; color: var(--navy); font-weight: 700; }
.au-box .au-lead { margin: 0 0 26px; font-size: .93rem; line-height: 1.55; color: var(--soft); }
.au-box .au-lead strong { color: var(--navy); font-weight: 600; }

/* ---------- cartão ---------- */
.au-card {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: var(--radius);
    box-shadow: 0 24px 54px -28px rgba(16, 24, 40, .34), inset 0 1px 0 rgba(255, 255, 255, .7);
    padding: 26px 24px;
}

/* ---------- formulário ---------- */
.au-field { margin-bottom: 15px; }
.au-field label { display: block; font-size: .82rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.au-input {
    position: relative; display: flex; align-items: center;
    border: 1px solid var(--line); border-radius: .75rem; background: #fff;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.au-input:focus-within {
    border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent);
}
.au-input .au-ic { flex: none; width: 1.05rem; height: 1.05rem; margin-left: .8rem; color: var(--faint); }
.au-input input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink);
    font-family: inherit; font-size: .95rem; padding: .78rem .85rem; border-radius: .75rem;
}
.au-input input::placeholder { color: #b6bfcd; }
.au-eye {
    flex: none; border: 0; background: none; cursor: pointer; color: var(--faint);
    padding: .5rem .7rem .5rem .3rem; display: grid; place-items: center;
}
.au-eye:hover { color: var(--soft); }
.au-eye svg { width: 1.1rem; height: 1.1rem; }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; }
.au-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--soft); cursor: pointer; }
.au-check input { width: 1rem; height: 1rem; accent-color: var(--brand); cursor: pointer; }
.au-link { color: var(--brand); font-size: .85rem; font-weight: 500; text-decoration: none; }
.au-link:hover { text-decoration: underline; }

.au-btn {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    border: 0; border-radius: .75rem; cursor: pointer;
    background: var(--brand); color: #fff; font-family: inherit; font-size: .95rem; font-weight: 600;
    padding: .85rem 1.2rem;
    box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--brand) 75%, transparent);
    transition: filter .16s, transform .12s var(--ease), box-shadow .16s;
}
.au-btn:hover { filter: brightness(.95); }
.au-btn:active { transform: scale(.985); }
.au-btn svg { width: 1.05rem; height: 1.05rem; }

.au-after { margin: 18px 0 0; text-align: center; font-size: .85rem; color: var(--soft); }
.au-after a { color: var(--brand); font-weight: 600; text-decoration: none; }
.au-after a:hover { text-decoration: underline; }

/* ---------- avisos ---------- */
.au-note {
    display: flex; gap: .55rem; align-items: flex-start;
    font-size: .85rem; line-height: 1.45; border-radius: .75rem; padding: .7rem .85rem; margin: 0 0 16px;
    border: 1px solid #cfe6d6; background: #eef8f1; color: #2b6b3c;
}
.au-note.err { border-color: #f3d2d2; background: #fdeeee; color: #a33a3a; }
.au-note svg { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .08rem; }
.au-err { display: block; margin: 6px 0 0; font-size: .78rem; color: #b4232a; }

/* ---------- rodapé ---------- */
.au-foot { margin: 26px 0 0; font-size: .76rem; color: var(--faint); text-align: center; }
.au-foot a { color: var(--soft); text-decoration: none; }
.au-foot a:hover { color: var(--brand); }

/* telas estreitas: a linha do "manter conectado" não pode quebrar em duas */
@media (max-width: 430px) {
    .au-row { gap: 8px; }
    .au-check, .au-link { font-size: .8rem; white-space: nowrap; }
    .au-card { padding: 22px 18px; }
    .au-box h1 { font-size: 1.56rem; }
}

/* ---------- painel da marca (direita) ---------- */
.au-art { display: none; }

@media (min-width: 980px) {
    .au-split { grid-template-columns: 1fr minmax(420px, 42%); }
    .au-side { padding: 48px; }
    .au-art {
        position: relative; display: flex; flex-direction: column; justify-content: center;
        padding: 56px 52px; overflow: hidden; color: #fff;
        background:
            radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 85%, #fff 0%), transparent 58%),
            linear-gradient(155deg, color-mix(in srgb, var(--navy) 92%, var(--brand)), var(--navy));
    }
    /* brilho de vidro, sem imagem */
    .au-art::before {
        content: ''; position: absolute; width: 560px; height: 560px; right: -170px; top: -190px; border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, .17), transparent 62%);
    }
    .au-art::after {
        content: ''; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
        background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 64%);
    }
    .au-art > * { position: relative; z-index: 1; }
    .au-art h2 { margin: 0 0 14px; font-size: 1.62rem; line-height: 1.26; letter-spacing: -.02em; font-weight: 600; max-width: 15ch; }
    .au-art p { margin: 0 0 28px; font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .76); max-width: 34ch; }
    .au-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
    .au-art li { display: flex; align-items: flex-start; gap: .65rem; font-size: .92rem; color: rgba(255, 255, 255, .9); }
    .au-art li svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .1rem; color: #fff; opacity: .9; }
    .au-nino {
        position: absolute; right: 38px; bottom: 0; width: 230px; height: auto; z-index: 1;
        filter: drop-shadow(0 30px 44px rgba(0, 0, 0, .4));
        animation: au-flutua 6s ease-in-out infinite;
    }
    .au-art .au-selo {
        margin-top: 34px; display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start;
        background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 999px; padding: .45rem .85rem; font-size: .78rem; color: rgba(255, 255, 255, .88);
    }
    .au-art .au-selo img { height: .95rem; width: auto; display: block; }
}

@keyframes au-flutua {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
    .au-nino { animation: none; }
}

/* Senha à mostra: o olho acende, para a pessoa saber que o campo está visível. */
.au-eye.on { color: var(--brand); }

/* Entrar com o Google: alternativa ao formulário, com a mesma altura do botão principal. */
.au-google { display:flex; align-items:center; justify-content:center; gap:.6rem; width:100%;
    padding:.8rem 1rem; border-radius:.8rem; border:1px solid rgba(16,24,40,.14); background:#fff;
    color:var(--navy); font-weight:600; font-size:.95rem; text-decoration:none; transition:border-color .15s, box-shadow .15s; }
.au-google:hover { border-color:rgba(16,24,40,.3); box-shadow:0 6px 16px -10px rgba(16,24,40,.4); }
.au-ou { display:flex; align-items:center; gap:.7rem; margin:1rem 0; color:var(--faint); font-size:.8rem; }
.au-ou::before, .au-ou::after { content:""; flex:1; height:1px; background:rgba(16,24,40,.1); }
.au-erro { margin-bottom:1rem; padding:.7rem .85rem; border-radius:.7rem; font-size:.85rem;
    color:#9f1239; background:#fff1f2; border:1px solid #fecdd3; }
