/* Mobile sign-in layout, shared with the website's existing theme. */
/* Keep sign-in on the brand palette without changing the saved account accent.
   Shared derived tokens recompute on body; removing is-auth restores the accent. */
body.is-auth,
body.is-auth[data-accent] {
  --accent-rgb: 139, 92, 246;
  --accent-primary: #8b5cf6;
  --accent-strong: #7c3aed;
  --accent-dark: #5b21b6;
  --accent-light: #c4b5fd;
  --accent-contrast: #ffffff;
}
.auth-screen { min-height: 100svh; padding: 32px 20px; }
.auth-card { --auth-link: var(--accent-light); max-width: 460px; padding: 32px; }
.auth-brand { display: block; width: 140px; height: 140px; object-fit: contain; border-radius: 24px; margin: 0 auto 16px; }
.auth-title { color: var(--text); font-size: 1.6rem; font-weight: 750; line-height: 1.3; margin: 0 0 8px; }
.auth-card .auth-tagline { margin: 0 0 28px; font-weight: 400; line-height: 1.5; }
.auth-field { text-align: left; margin-bottom: 18px; }
.auth-field > label { display: block; color: var(--text); font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.auth-input-wrap { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border2); border-radius: 12px; padding: 0 14px; background: var(--bg3); }
.auth-input-wrap > svg { flex-shrink: 0; color: var(--text3); }
.auth-input-wrap:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.auth-input-wrap input { min-width: 0; width: 100%; height: 52px; border: 0; outline: 0; padding: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.auth-input-wrap input::placeholder { color: var(--text3); }
.auth-password-toggle { min-height: 44px; border: 0; background: transparent; color: var(--auth-link); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.auth-card .auth-consent { margin: 12px 0 0; text-align: left; }
.auth-consent-hint { margin: 0 0 12px; color: var(--text2); font-size: .78rem; line-height: 1.5; }
.auth-consent:focus-within { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.auth-card .auth-submit, .auth-card .btn-google { width: 100%; min-height: 50px; border-radius: 12px; font-size: .95rem; font-weight: 600; }
.auth-card .btn-google {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border2);
  box-shadow: none;
}
.auth-card .btn-google > svg { flex: 0 0 18px; }
.auth-card .btn-google:hover:not(:disabled) { background: var(--bg4); border-color: var(--accent-border); }
.auth-link { min-height: 44px; border: 0; background: transparent; color: var(--auth-link); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .85rem; cursor: pointer; margin-top: 12px; }
.auth-card button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.auth-card button:disabled { opacity: .5; cursor: not-allowed; }
.auth-card #btnGoogle:disabled,
.auth-card #btnGoogle:disabled:hover { opacity: 1; color: var(--text3); background: var(--bg3); filter: none; }
.auth-card .btn-google:disabled > svg { opacity: .55; }
.auth-message { padding: 12px 14px; margin: 0 0 16px; border-radius: 10px; background: rgba(220,38,38,.09); color: var(--text); font-size: .85rem; line-height: 1.5; text-align: left; border: 1px solid rgba(220,38,38,.3); }
.auth-message[data-tone="success"] { background: rgba(22,163,74,.09); border-color: rgba(22,163,74,.3); }
.auth-card #btnGuest { margin-top: 20px; width: 100%; min-height: 44px; }
.auth-card [hidden] { display: none !important; }
@media (max-width: 520px) {
  .auth-screen { padding: 24px; align-items: flex-start; background: var(--bg); }
  .auth-card { padding: 0; max-width: 400px; background: transparent; border: 0; box-shadow: none; }
  .auth-brand { margin-top: 8px; }
  body.light .auth-card { background: transparent; }
}
@media (max-height: 740px) and (min-width: 521px) {
  .auth-screen { align-items: flex-start; }
}

body.light .auth-card { --auth-link: var(--accent-strong); }
.auth-card .auth-consent a { color: var(--auth-link); }
