* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--surface-page); color: var(--text-strong); }
button, select, input { color: inherit; font: inherit; }
.landing { min-height: 100dvh; max-width: 460px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--space-5); }
.auth-brand { text-align: center; padding: 6px 0; }
.brand-lockup { display: block; width: min(100%, 310px); height: auto; margin: 0 auto; }
.brand-plaque { background: var(--brand-black); border-bottom: 1px solid var(--line); padding: 20px 18px 16px; margin: -28px -20px 26px; }
.eyebrow { margin: 0; color: var(--text-2); letter-spacing: .14em; text-transform: uppercase; font-size: var(--text-xs); font-weight: 800; }
h1, h2 { font-family: var(--font-display); text-transform: uppercase; }
h1 { margin: 5px 0 8px; font-size: var(--text-2xl); font-weight: 800; letter-spacing: .01em; line-height: .95; }
.subtitle { margin: 0 auto; color: var(--text-muted); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.auth-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-card); }
.auth-card[hidden] { display: none; }
.card-title { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.hint { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.badge-warn { display: inline-block; margin: 0 0 10px; padding: 5px 10px; border: 1px solid #d89b85; border-radius: 999px; background: #fff4ef; color: #842e1d; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.field-label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; }
.pin-field, select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"] { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; background: var(--surface-2); color: var(--text); font-size: 22px; letter-spacing: .3em; text-align: center; margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="tel"], select { font-size: 16px; letter-spacing: normal; text-align: left; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.btn-primary, .btn-secondary { width: 100%; min-height: 50px; border-radius: var(--radius-sm); font-weight: 800; font-size: 15px; cursor: pointer; }
.btn-primary { border: 2px solid #C5E017; background: #C5E017; color: #000; }
#card-email .btn-primary, #card-email .btn-secondary, #card-pinset .btn-primary, #card-passetup .btn-primary { margin-top: 8px; }
input.password-field { font-size: 16px; letter-spacing: normal; text-align: left; }
.btn-primary:disabled { opacity: .46; cursor: not-allowed; }
.btn-secondary { margin-top: 10px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); }
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-switch.subtle { margin-top: 8px; font-size: 13px; }
.linkish { background: none; border: 0; border-bottom: 2px solid var(--text-2); color: var(--text); font-size: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.linkish.block { display: block; width: 100%; margin-top: 14px; text-align: center; }
.msg { min-height: 1.25em; margin: 10px 0 0; color: var(--danger); font-size: 14px; }
.ok { color: var(--text); }
.signup-result { margin-top: 14px; padding: 14px; border-left: 4px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.signup-result strong { letter-spacing: .2em; font-size: 22px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: var(--text-muted); cursor: pointer; }
.check-row input { margin-top: 3px; flex-shrink: 0; }
.selfie { margin: 8px auto 12px; width: 140px; height: 140px; border: 2px dashed #7b8077; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); font-size: 13px; text-align: center; padding: 12px; overflow: hidden; background: var(--surface-subtle); cursor: pointer; }
.selfie img { width: 100%; height: 100%; object-fit: cover; }
.foot { margin-top: auto; text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--text); text-decoration-color: var(--text-2); text-decoration-thickness: 3px; font-weight: 700; }
.app-splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; margin: 0; background: #000; color: #fff; opacity: 1; transition: opacity .2s ease; }
.app-splash p { margin: 0; color: #fff; font: 800 16px/1.2 Inter, system-ui, sans-serif; }
.app-splash.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.app-splash img { width: min(78vw, 420px); height: auto; }
@media (prefers-reduced-motion: reduce) { .app-splash { transition: none; } }
@media (prefers-contrast: more) { .auth-card { border-width: 2px; } }
