/* Login + setup page. Uses only the theme variables from style.css. */
html, body { height: 100%; background: var(--bg); }
body { display: block; overflow: auto; }   /* style.css makes body the app grid; the login page is a plain page */
.lg { box-sizing: border-box; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden; }
.lg::before { content: ""; position: absolute; left: 50%; top: 42%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, var(--accent) 0%, transparent 62%); opacity: .06; }
.lg-wrap { position: relative; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.lg-card { background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 32px 28px; animation: lgin 150ms ease-out both; }
@keyframes lgin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lg-card { animation: none; } .lg-spin { animation: none !important; } }
.lg-brand { display: flex; justify-content: center; margin-bottom: 16px; }
.lg-logo { display: block; width: 100%; max-width: 220px; height: auto; }
.lg-sub { text-align: center; }
.lg-mark { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); flex: none; }
.lg-brand b { font-size: 16px; letter-spacing: .01em; color: var(--text); }
.lg-sub { margin: 0 0 24px; color: var(--mute); font-size: 14px; }
.lg-title { margin: 20px 0 4px; font-size: 20px; line-height: 28px; color: var(--text); }
.lg form { display: flex; flex-direction: column; gap: 16px; }
.lg label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--mute); }
.lg input { width: 100%; height: 44px; padding: 0 12px; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; font-family: var(--font); }
.lg input[readonly] { color: var(--mute); border-color: var(--line); }
.lg input:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.lg-pw { position: relative; }
.lg-pw input { padding-right: 64px; }
.lg-eye { position: absolute; right: 4px; top: 0; height: 44px; min-width: 52px; background: none; border: 0; border-radius: 8px; color: var(--mute); font-size: 13px; cursor: pointer; font-family: var(--font); }
.lg-eye:hover { color: var(--text); } .lg-eye:focus-visible { outline: 2px solid var(--accent); }
.lg-btn { width: 100%; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.lg-btn:hover:not([disabled]) { filter: brightness(1.08); }
.lg-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.lg-btn[disabled] { opacity: .45; cursor: not-allowed; }
.lg-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: lgspin .7s linear infinite; }
@keyframes lgspin { to { transform: rotate(360deg); } }
.lg-err { min-height: 20px; margin: 0; font-size: 13px; color: var(--bad); }
.lg-ok { margin: 0; font-size: 13px; color: var(--ok); }
.lg-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--faint); }
.lg-checks li::before { content: "\25CB"; display: inline-block; width: 20px; }
.lg-checks li.met { color: var(--ok); } .lg-checks li.met::before { content: "\2713"; }
.lg-foot { text-align: center; font-size: 12px; color: var(--faint); margin: 0; }
.lg-note { margin: 0; font-size: 14px; color: var(--mute); }
