/* LightPlane brand — the one stylesheet the public pages share: /welcome and
   the sign-in card (/index.html).
   Values come from /welcome, which set the look (2026-10-21). /box and /legal
   use the same palette and type. The boot screen in /ai/index.html repeats the
   tokens inline because it must paint before any stylesheet arrives — change
   them there too.

   Type: Sora for the wordmark and headings, Inter Tight for everything else.
   Wordmark: the trapezoid + "Light" regular + "Plane" bold, all white. Never
   colour "Plane" and never set it in another face.
   Pages load the fonts themselves (Google Fonts link), so this file never blocks
   on a third-party @import. */
:root {
    --bg: #07090f; --paper: #121726; --paper2: #182035; --ink: #e9ecf5; --muted: #9aa3bb; --dim: #5e677f;
    --line: #232b40; --accent: #4c6fff; --accent2: #7c93ff; --teal: #1aa39a; --purple: #7a5cf5;
    --good: #3ecf8e; --bad: #f0616d;
    --head: "Sora", system-ui, sans-serif; --body: "Inter Tight", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
    color: var(--ink); background: var(--bg);
    font-family: var(--body); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Two slow aurora washes behind everything. */
body::before, body::after {
    content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
    filter: blur(90px); opacity: .55;
}
body::before { width: 720px; height: 520px; left: -160px; top: -200px; background: radial-gradient(closest-side, #1d2f7a, transparent); animation: drift 22s ease-in-out infinite alternate; }
body::after  { width: 640px; height: 520px; right: -200px; bottom: -160px; background: radial-gradient(closest-side, #3a1f74, transparent); animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.12); } }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); margin: 0; text-wrap: balance; }

/* ── The wordmark ────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 19px; font-weight: 700; letter-spacing: .2px; color: var(--ink); }
.logo img { width: 28px; height: 28px; }
.logo b { font-weight: 400; }
.logo.lg { font-size: 26px; gap: 12px; }
.logo.lg img { width: 38px; height: 38px; }

/* ── Controls ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px;
    border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
    font: 600 15px var(--body); cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, transform .08s, box-shadow .2s;
}
.btn:hover { background: var(--paper2); border-color: #33405e; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(76, 111, 255, .35); }
.btn.primary:hover { background: #5d7cff; box-shadow: 0 10px 36px rgba(76, 111, 255, .5); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 14px; font-size: 14px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

.input {
    flex: 1; min-width: 0; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(8, 10, 18, .7); color: var(--ink); font: 15px var(--body); outline: none;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--accent); }
.input:-webkit-autofill, .input:-webkit-autofill:hover, .input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 40px #0b0e18 inset !important; -webkit-text-fill-color: var(--ink) !important;
}

/* A surface: the sign-in card. */
.card {
    padding: 32px; border-radius: 16px; border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(24, 32, 53, .7), rgba(18, 23, 38, .55));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

/* Status lines: ok / err. */
.msg { font-size: 14px; padding: 10px 14px; border-radius: 10px; }
.msg.ok { color: #7ee8b5; background: rgba(62, 207, 142, .1); border: 1px solid rgba(62, 207, 142, .3); }
.msg.err { color: #ff8b94; background: rgba(240, 97, 109, .1); border: 1px solid rgba(240, 97, 109, .3); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
