/* Login screen for /app/ and /admin/ (owner 2026-11-28): one small centered card — heading, Google button, two links.
   Uses the page's own colour tokens (light + dark). No inline styles, no external images. */
.auth-view:not([hidden]) { display: flex; justify-content: center; align-items: flex-start; padding: min(12vh, 96px) 0 40px; }
.auth-card {
  width: 100%; max-width: 380px; box-sizing: border-box; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 28px 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.auth-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand); color: var(--brand-ink, #fff); font-weight: 800; font-size: 1.3rem; margin-bottom: 14px;
}
.auth-card h1 { margin: 0 0 22px; font-size: 1.55rem; line-height: 1.3; color: var(--ink); }
.btn.auth-google {
  width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; box-shadow: none;
}
.btn.auth-google:hover:not([disabled]) { border-color: var(--brand); }
.btn.auth-google[disabled] { cursor: progress; opacity: .85; }
.auth-google .g-logo {
  width: 20px; height: 20px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.7 1.2 9.2 3.6l6.9-6.9C35.9 2.4 30.4 0 24 0 14.6 0 6.6 5.4 2.6 13.3l8 6.2C12.5 13.6 17.8 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 3-2.3 5.5-4.8 7.2l7.7 6c4.5-4.2 6.9-10.3 6.9-17.7z'/%3E%3Cpath fill='%23FBBC05' d='M10.6 28.5c-.5-1.4-.8-2.9-.8-4.5s.3-3.1.8-4.5l-8-6.2C.9 16.6 0 20.2 0 24s.9 7.4 2.6 10.7l8-6.2z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.7-6c-2.2 1.5-5 2.3-8.2 2.3-6.2 0-11.5-4.1-13.4-9.8l-8 6.2C6.6 42.6 14.6 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* busy: the Google mark turns into a spinner, the text says "लॉगिन हो रहा है…" (text stays visible) */
.auth-spin { display: none; width: 18px; height: 18px; flex: none; border-radius: 999px; box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent); border-top-color: var(--brand); animation: auth-spin .8s linear infinite; }
.auth-google.signing .g-logo { display: none; }
.auth-google.signing .auth-spin { display: inline-block; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-spin { animation-duration: 1.6s; } }
.auth-err { margin: 12px 0 0; font-size: .92rem; }
.auth-links { margin: 22px 0 0; font-size: .85rem; color: var(--muted); display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.auth-links a { color: var(--muted); text-decoration: none; }
.auth-links a:hover, .auth-links a:focus-visible { color: var(--brand); text-decoration: underline; }
@media (max-width: 480px) {
  .auth-view:not([hidden]) { padding-top: 40px; }
  .auth-card { padding: 28px 20px 20px; border-radius: 16px; }
}
