/* Dedicated, accessible sign-in gateway with a Berlin landmark backdrop. */
.legal-inline-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 16px 0 4px; color: var(--auth-muted, var(--muted)); font-size: 11px; }
.legal-inline-links a { color: inherit; text-underline-offset: 3px; }
.legal-inline-links a:hover { color: var(--auth-blue, var(--accent)); }
body.is-auth {
  --auth-panel: #ffffff;
  --auth-panel-soft: #f1f5fb;
  --auth-ink: #1d2c42;
  --auth-muted: #58677b;
  --auth-line: #d7e0ec;
  --auth-blue: #2563eb;
  min-height: 100%;
  background: #e9eef6;
  color: var(--auth-ink);
}
html[data-theme="dark"] body.is-auth {
  --auth-panel: #111a29;
  --auth-panel-soft: #1c293b;
  --auth-ink: #eff4fb;
  --auth-muted: #bdc9d8;
  --auth-line: #40526a;
  --auth-blue: #93c5fd;
  background: #0b1220;
}
body.is-auth .topbar,
body.is-auth .mobile-nav,
body.is-auth .skip-link,
body.is-auth #page-location,
body.is-auth #storage-alert,
body.is-auth #startup-notice { display: none !important; }
body.is-auth .shell { width: 100%; max-width: none; padding: 0; margin: 0; }
#screen-auth[hidden] { display: none !important; }
#screen-auth:not([hidden]) { display: block; min-height: 100dvh; }
.auth-gateway {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, .94fr);
  min-height: 100dvh;
  background: var(--auth-panel);
  color: var(--auth-ink);
  direction: rtl;
  animation: auth-enter 420ms cubic-bezier(.2,.75,.25,1) both;
}
.auth-berlin {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 690px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 68px);
  color: #fff;
  background-color: #172944;
  background-image: url("https://images.unsplash.com/photo-1666246240428-918be1b9eef3?auto=format&fit=crop&w=2200&q=88");
  background-size: cover;
  background-position: center 48%;
}
.auth-berlin-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(8,18,36,.28) 0%, rgba(8,18,36,.2) 38%, rgba(8,18,36,.83) 100%), linear-gradient(90deg, rgba(7,19,40,.12), rgba(7,19,40,.25)); }
.auth-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 12px; color: #fff; text-decoration: none; }
.auth-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 17px; letter-spacing: -.02em; }
.auth-brand small { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 12px; }
.auth-berlin-copy { max-width: 620px; margin-block: auto 30px; padding-top: 80px; }
.auth-kicker { display: inline-flex; align-items: center; min-height: 29px; padding: 4px 11px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(12,27,48,.3); color: #eaf2ff; direction: ltr; font: 700 10px/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: .13em; }
.auth-berlin-copy h2 { margin: 16px 0 10px; color: #fff; font-size: clamp(35px, 4.3vw, 59px); line-height: 1.43; letter-spacing: -.035em; }
.auth-berlin-copy p { max-width: 470px; margin: 0; color: rgba(255,255,255,.86); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.95; }
.auth-route { display: flex; align-items: center; gap: 11px; margin-top: 29px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 700; }
.auth-route i { width: 24px; height: 1px; background: rgba(255,255,255,.52); }
.auth-photo-credit { align-self: flex-start; color: rgba(255,255,255,.78); font: 11px/1.5 ui-sans-serif, system-ui, sans-serif; text-decoration: none; direction: ltr; }
.auth-photo-credit:hover { color: #fff; text-decoration: underline; }
.auth-form-side { display: flex; flex-direction: column; min-width: 0; padding: 24px clamp(24px, 5vw, 70px) 40px; background: var(--auth-panel); }
.auth-top-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.auth-theme-toggle, .auth-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--auth-line); border-radius: 12px; background: var(--auth-panel); color: var(--auth-muted); font: inherit; font-size: 13px; font-weight: 650; line-height: 1.4; cursor: pointer; }
.auth-back:hover, .auth-theme-toggle:hover { border-color: var(--auth-blue); color: var(--auth-blue); }
.auth-form-wrap { width: min(100%, 480px); margin: auto; padding-block: 48px; }
.auth-form-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-form-brand-row img { width: 48px; height: 48px; object-fit: contain; border-radius: 14px; }
.auth-form-eyebrow { color: var(--auth-blue); font-size: 13px; font-weight: 800; }
.auth-form-wrap h1 { margin: 11px 0 7px; color: var(--auth-ink); font-size: clamp(28px, 3vw, 39px); line-height: 1.45; letter-spacing: -.035em; }
.auth-form-lead { margin: 0 0 27px; color: var(--auth-muted); font-size: 15px; line-height: 1.9; }
.auth-form-wrap .google-signin-slot { min-height: 56px; }
.auth-form-wrap .firebase-auth-controls { max-width: none; gap: 15px; }
.auth-form-wrap .firebase-google-button { height: 44px; min-height: 44px; border-radius: 4px; background: #fff; color: #1f1f1f; font: 500 14px/20px Roboto, Arial, sans-serif; }
.auth-form-wrap .firebase-google-button:hover { background: #f8f9fa; color: #1f1f1f; }
html[data-theme="dark"] .auth-form-wrap .firebase-google-button { border-color: #8e918f; background: #131314; color: #e3e3e3; }
html[data-theme="dark"] .auth-form-wrap .firebase-google-button:hover { border-color: #c4c7c5; background: #2a2b2e; color: #e3e3e3; }
.auth-form-wrap .firebase-auth-divider { margin-block: 2px; }
.auth-form-wrap .auth-field { color: var(--auth-ink); font-size: 13px; font-weight: 700; }
.auth-form-wrap .auth-field input { min-height: 50px; border-color: var(--auth-line); border-radius: 12px; background: var(--auth-panel-soft); color: var(--auth-ink); }
.auth-form-wrap .firebase-auth-controls .button-primary { min-height: 52px; border-radius: 13px; background: var(--auth-blue); border-color: var(--auth-blue); color: #fff; }
html[data-theme="dark"] .auth-form-wrap .firebase-auth-controls .button-primary { color: #10243d; }
.auth-form-wrap .firebase-auth-toggle, .auth-form-wrap .firebase-auth-reset, .auth-form-wrap .firebase-auth-verify { color: var(--auth-blue); }
.auth-form-wrap .google-auth-status { min-height: 24px; margin: 12px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.8; }
.auth-current-account { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 9px; width: 100%; min-height: 50px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--auth-line); border-radius: 13px; background: var(--auth-panel-soft); color: var(--auth-ink); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.auth-current-account span { color: var(--auth-muted); font-size: 11px; }
.auth-current-account:hover { border-color: var(--auth-blue); color: var(--auth-blue); }
.auth-current-account[hidden] { display: none !important; }
.auth-provider-note { margin: 0; color: var(--auth-muted); font-size: 12px; line-height: 1.8; }
.auth-form-note { margin: 14px 0 0; color: var(--auth-muted); font-size: 12px; line-height: 1.8; }
.auth-safe-note { display: flex; align-items: center; gap: 9px 10px; margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 12px; line-height: 1.7; }
.auth-safe-note span:nth-child(odd) { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--auth-blue) 13%, var(--auth-panel)); color: var(--auth-blue); font-weight: 900; }
.auth-safe-note bdi { color: var(--auth-ink); font-weight: 750; }
@keyframes auth-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 820px) {
  .auth-gateway { display: block; min-height: 100dvh; padding: max(20px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)); background: #10223e; }
  .auth-berlin { position: absolute; inset: 0; min-height: 100%; padding: 28px 24px; background-position: center; }
  .auth-berlin-shade { background: linear-gradient(180deg, rgba(8,18,36,.48), rgba(8,18,36,.25) 40%, rgba(8,18,36,.73)); }
  .auth-brand { position: relative; z-index: 1; }
  .auth-berlin-copy { display: none; }
  .auth-photo-credit { position: absolute; inset-inline-start: 22px; bottom: 12px; z-index: 1; font-size: 9px; }
  .auth-form-side { position: relative; z-index: 1; width: min(100%, 530px); min-height: min(690px, calc(100dvh - 40px)); margin: max(74px, 10vh) auto 26px; padding: 18px clamp(20px, 6vw, 34px) 28px; border: 1px solid color-mix(in srgb, var(--auth-line) 80%, transparent); border-radius: 23px; background: color-mix(in srgb, var(--auth-panel) 95%, transparent); box-shadow: 0 28px 80px rgba(3,14,31,.25); backdrop-filter: blur(16px); }
  .auth-form-wrap { padding-block: 32px; }
}
@media (max-width: 430px) {
  .auth-gateway { padding-inline: 12px; }
  .auth-brand { gap: 9px; }
  .auth-brand img { width: 42px; height: 42px; }
  .auth-brand strong { font-size: 15px; }
  .auth-form-side { margin-top: 62px; min-height: 0; padding: 15px 18px 24px; }
  .auth-form-wrap { padding-block: 25px; }
  .auth-form-lead { font-size: 14px; }
  .auth-safe-note { align-items: flex-start; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-gateway { animation: none; }
}
