/* The hosted sign-in page uses the same theme tokens as the chat app. */
body.login {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background: radial-gradient(ellipse 85% 45% at 50% 8%, var(--accent-tint), transparent), var(--bg);
}
.login-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.login-shell { width: min(400px, 100%); }
.login-heading { text-align: center; margin-bottom: 24px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.login-brand img { width: 40px; height: 40px; }
.login-heading h1 { margin: 0 0 10px; font-size: clamp(24px, 5vw, 29px); font-weight: 750; line-height: 1.3; letter-spacing: -.035em; }
.login-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.login-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.login-code-label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; }
.login-code {
  width: 100%; min-width: 0; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0 14px; background: var(--surface);
  font-size: 16px; font-weight: 400; outline: none; transition: border-color .18s, box-shadow .18s;
}
.login-code::placeholder { color: var(--muted); opacity: .75; }
.login-code:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.login-start { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: var(--r-sm); }
.login-start:disabled { opacity: .7; }
.login-spinner { display: none; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: login-spin .7s linear infinite; }
.login-start.is-working .login-spinner { display: inline-block; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.login-request { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600; }
.login-request:hover { text-decoration: none; }
.login-error { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 12px; color: var(--negative-ink); background: var(--negative-tint); border: 1px solid var(--negative-line); border-radius: var(--r-md); font-size: 13px; line-height: 1.5; }
.login-error-icon { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; }
body.login .trial-banner { display: flex; align-items: flex-start; justify-content: flex-start; gap: 9px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-info-icon { display: inline-grid; flex: none; place-items: center; width: 17px; height: 17px; border: 1px solid var(--muted); border-radius: 50%; font: 700 11px/1 sans-serif; margin-top: 2px; }
.login-langs { width: fit-content; max-width: 100%; margin: 20px auto 0; display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.login-langs button { border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); padding: 7px 13px; font-size: 12px; }
.login-langs button[aria-pressed="true"] { color: var(--accent-deep); background: var(--accent-tint); font-weight: 700; }
.login-langs button:focus-visible { outline-offset: 1px; }
@media (max-width: 420px) { .login-main { padding: 32px 16px; } .login-card { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .login-spinner { animation: none; } .login-code { transition: none; } }
