/* ============================================================================
   UNIVIX — Entrada
   ----------------------------------------------------------------------------
   Tela isolada: não carrega app.css nem modules.css, só tokens e componentes.
   É a primeira coisa que a direção vê, e a única tela do sistema que não tem
   dado nenhum para exibir — então quem carrega a impressão aqui é a tipografia
   e o contraste, não o conteúdo.
   ========================================================================= */

* { box-sizing: border-box; }

.lg-body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-md);
    line-height: var(--leading-normal);
    color: var(--ink-700);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

.lg-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* ================================ MARCA ================================= */

.lg-brand {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: var(--space-10);
    background: var(--brand-deep);
    color: #fff;
}
/* Um respiro de luz verde no canto. Textura, não gradiente de fundo inteiro. */
.lg-brand::before {
    content: ""; position: absolute; inset: auto -20% -35% -10%; height: 70%;
    background: radial-gradient(60% 100% at 30% 100%, rgba(0, 122, 74, .55), transparent 70%);
    pointer-events: none;
}
.lg-brand > * { position: relative; }

.lg-brand-top { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.lg-logo { width: 190px; height: auto; display: block; }
.lg-wordmark {
    font-size: var(--text-2xs); font-weight: var(--weight-bold);
    letter-spacing: .24em; text-transform: uppercase;
    color: var(--ink-inverse-dim);
}

.lg-brand-message { max-width: 30ch; }
.lg-kicker {
    margin: 0 0 var(--space-4);
    font-size: var(--text-2xs); font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--pulse);
}
.lg-headline {
    margin: 0 0 var(--space-4);
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: #fff;
}
.lg-lede { margin: 0; font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--ink-inverse-soft); }

.lg-brand-foot { margin: 0; font-size: var(--text-sm); color: var(--ink-inverse-dim); }

/* ================================ FORMULÁRIO ============================ */

.lg-panel {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--space-6);
    padding: var(--space-10) var(--space-6);
    background: var(--surface);
}

.lg-card { width: 100%; max-width: 384px; }

.lg-head { margin-bottom: var(--space-6); }
.lg-head h1 { margin: 0 0 var(--space-2); font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); color: var(--ink-900); }
.lg-head p { margin: 0; font-size: var(--text-md); color: var(--ink-600); }

.lg-alert {
    display: flex; align-items: flex-start; gap: var(--space-2);
    margin-bottom: var(--space-5); padding: var(--space-3) var(--space-4);
    background: var(--danger-soft); border: 1px solid var(--danger-border);
    border-radius: var(--r-sm);
    font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--danger);
}
.lg-alert i, .lg-alert svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.lg-form { display: flex; flex-direction: column; gap: var(--space-4); }
.lg-form .ux-input { min-height: 44px; }

.lg-password .ux-input { padding-right: var(--space-10); }
.lg-eye {
    position: absolute; right: var(--space-2);
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border: none; border-radius: var(--r-xs); background: none;
    color: var(--ink-400); cursor: pointer;
}
.lg-eye:hover { background: var(--surface-3); color: var(--ink-700); }
.lg-eye:focus-visible { outline: none; box-shadow: var(--ring); }
.lg-eye i, .lg-eye svg { width: 16px; height: 16px; }
/* Qual olho aparece e decidido aqui, nao pelo atributo hidden: o lucide troca o
   <i> por <svg> e perde o hidden inicial, e os dois ficavam sobrepostos. */
.lg-eye [data-eye="off"], .lg-eye.is-visible [data-eye="on"] { display: none; }
.lg-eye.is-visible [data-eye="off"] { display: block; }

.lg-link {
    align-self: center; padding: var(--space-1) var(--space-2);
    border: none; background: none; border-radius: var(--r-xs);
    font: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium);
    color: var(--ink-600); cursor: pointer;
}
.lg-link:hover { color: var(--brand); text-decoration: underline; }
.lg-link:focus-visible { outline: none; box-shadow: var(--ring); }

.lg-note {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    margin: var(--space-6) 0 0; padding-top: var(--space-5);
    border-top: 1px solid var(--line);
    font-size: var(--text-xs); color: var(--ink-400);
}
.lg-note i, .lg-note svg { width: 14px; height: 14px; flex: none; }

.lg-credit { margin: 0; font-size: var(--text-2xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--ink-300); }

/* ================================= MODAL ================================ */

.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: var(--space-4); background: var(--surface-overlay); backdrop-filter: blur(2px); }
.modal.is-open, .modal[aria-hidden="false"] { display: flex; }
.modal-card { width: min(460px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.modal-head { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--card-pad); border-bottom: 1px solid var(--line); }
.modal-head > :first-child { margin-right: auto; }
.modal-head h3 { margin: var(--space-1) 0 0; }
.recovery-note { padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--space-3); }
.recovery-note p { margin: 0; font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--ink-600); }
.form-actions { display: flex; justify-content: flex-end; padding: var(--card-pad-tight) var(--card-pad); border-top: 1px solid var(--line); background: var(--surface-2); }

/* =============================== RESPONSIVO ============================= */

@media (max-width: 900px) {
    .lg-shell { grid-template-columns: 1fr; }
    .lg-brand { padding: var(--space-6); gap: var(--space-6); }
    .lg-headline { font-size: var(--text-2xl); }
    .lg-lede, .lg-brand-foot { display: none; }
    .lg-panel { padding: var(--space-8) var(--space-5); justify-content: flex-start; }
}
