* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --brand: #1F3864; --brand-2: #2E5FA3; --soft: #BDD3F5; --page: #eef1f5; --card: #fff; --text: #1d2433; --muted: #6b7486; --line: #edf0f4; --border: #d0ddf5; --tint: #f5f8ff; --shadow: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.08); }
html, body { height: 100%; }
body.login-page { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: var(--page); color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }

.lp-bar { display: flex; align-items: center; height: 46px; padding: 0 14px; padding-top: env(safe-area-inset-top); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 2px 6px rgba(16,24,40,0.05); flex-shrink: 0; }
.lp-bar-title { font-weight: 700; font-size: 15px; color: var(--brand); }

.lp-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 14px calc(24px + env(safe-area-inset-bottom)); }
.lp-card { width: 100%; max-width: 380px; background: var(--card); box-shadow: var(--shadow); }
.lp-hero { display: flex; align-items: center; gap: 14px; padding: 22px 20px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; }
.lp-ico { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; padding: 7px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.2); }
.lp-hero h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }
.lp-sub { font-size: 13px; color: var(--soft); margin-top: 3px; }

.lp-body { padding: 20px; }
.lp-body label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 14px 0 6px; }
.lp-body label:first-of-type { margin-top: 0; }
.lp-body input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--border); background: var(--tint); border-radius: 0; font-size: 16px; font-family: inherit; color: var(--text); -webkit-appearance: none; appearance: none; }
.lp-body input:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(46,95,163,0.15); }
.lp-pw { position: relative; }
.lp-pw input { padding-right: 68px; }
.lp-show { position: absolute; top: 1px; right: 1px; height: 44px; width: 62px; border: none; border-left: 1px solid var(--border); background: transparent; color: var(--brand); font: 600 13px inherit; font-family: inherit; cursor: pointer; }
.lp-show:hover { background: #e4edff; }
.lp-submit { width: 100%; height: 48px; margin-top: 22px; border: none; border-radius: 0; background: var(--brand); color: #fff; font: 700 15px inherit; font-family: inherit; cursor: pointer; }
.lp-submit:hover { background: #162d52; }
.lp-submit:disabled { opacity: 0.7; cursor: default; }

.lp-msg { padding: 10px 12px; font-size: 13px; margin-bottom: 16px; border-left: 3px solid; }
.lp-error { background: #fbeaea; color: #a12a1e; border-left-color: #c0392b; }
.lp-info { background: #EEF2F8; color: var(--brand); border-left-color: var(--brand-2); }

.lp-foot { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.lp-lock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lp-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* passkey sign-in */
.lp-passkey[hidden] { display: none; }
.lp-pk-btn { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: none; background: #1F3864; color: #fff; font: 700 16px inherit; font-family: inherit; cursor: pointer; }
.lp-pk-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lp-pk-btn:disabled { opacity: 0.6; }
.lp-passkey .lp-msg { margin-top: 12px; }
.lp-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; color: #667085; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.lp-or::before, .lp-or::after { content: ""; flex: 1; height: 1px; background: #d0d7e2; }

/* signed-out screen */
.lp-main[hidden] { display: none; }
.lp-bye { text-align: center; padding: 8px 0 4px; }
.lp-bye-title { font-size: 20px; font-weight: 700; color: #1F3864; margin: 0 0 8px; }
.lp-bye-text { color: #667085; margin: 0 0 20px; line-height: 1.5; }
.lp-again { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* account requests */
.lp-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.lp-alt a { color: var(--brand-2); font-weight: 600; }
.lp-hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.lp-intro { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.lp-body textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--border); background: var(--tint); border-radius: 0; font-size: 16px; font-family: inherit; color: var(--text); resize: vertical; }
.lp-body textarea:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(46,95,163,0.15); }
.lp-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-done { text-align: center; padding: 8px 0 4px; }
.lp-done .lp-bye-text { margin-bottom: 20px; }
html.dark .lp-alt a { color: #9fbbe9; }
html.dark .lp-body textarea { background: #1d2840; border-color: #2b3954; color: var(--text); }
html.dark .lp-body textarea:focus { background: #1a2232; }
.lp-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }

.lp-check { display: flex !important; gap: 10px; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 13px !important; color: var(--text) !important; margin-top: 18px !important; line-height: 1.45; }
.lp-body .lp-check input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; -webkit-appearance: auto; appearance: auto; }
.lp-check a, .lp-plink { color: var(--brand-2); font-weight: 600; }
html.dark .lp-check a, html.dark .lp-plink { color: #9fbbe9; }
