/* Sign-in and first-time setup: one centered white card, like Zoom's sign-in. */
.auth { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 32px max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px)); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px 28px; box-shadow: 0 12px 40px rgba(17, 24, 39, .08); }
.auth-card::before { content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 16px; background: url("/logo.svg") center / contain no-repeat; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; text-align: center; text-wrap: balance; }
.auth-card > p { margin: 0 0 18px; color: var(--muted); text-align: center; }
.auth-card label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.auth-card input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.auth-card .btn { width: 100%; margin-top: 20px; padding: 12px; }
.auth-card .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--blue); font-weight: 600; text-decoration: none; }

.auth-aside { float: right; font-weight: 500; font-size: 13px; color: var(--blue); text-decoration: none; }
.auth-ok { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #e8f5ec; color: #1b5e20; font-size: 14px; }
.auth-ok.hidden { display: none; }

/* Sign in with Oneway TV (like "Sign in with Google" on Zoom) */
.sso { margin: 4px 0; }
.auth-card .sso-btn { display: flex; gap: 10px; margin-top: 4px; text-decoration: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.auth-card .sso-btn:hover { background: var(--bg); }
.sso-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 2px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sso-or::before, .sso-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#sso-error:empty { display: none; }
