/* Shared by the direct account pages and the dialog in the map. */
.auth-site {
  --auth-paper: #fffef9;
  --auth-text: #163331;
  --auth-muted: #4a6563;
  --auth-line: #c1d0ca;
  --auth-soft: #eef3ed;
  --auth-input: #fffefa;
  --auth-link: #075f63;
  --auth-highlight: #ffd679;
  color: var(--auth-text);
  font: 400 1rem/1.48 system-ui, sans-serif;
}
:root[data-appearance=dark] .auth-site, .auth-site[data-appearance=dark] {
  --auth-paper: #122831;
  --auth-text: #f1f5f2;
  --auth-muted: #b1c6ca;
  --auth-line: #395862;
  --auth-soft: #19343e;
  --auth-input: #0d2028;
  --auth-link: #a4e3db;
}
.auth-shell {
  background: linear-gradient(rgb(9 28 28 / .16), rgb(9 28 28 / .20)),
              url('/assets/launch-two-jack-lake.webp') center 55% / cover no-repeat, #264b46;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: max(20px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
           max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  gap: 16px;
}
.auth-main { display: grid; align-items: center; justify-items: center; }
.auth-panel {
  box-sizing: border-box;
  width: min(100%, 448px);
  margin: 0 auto;
  padding: 22px 28px 18px;
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  color: var(--auth-text);
  background: var(--auth-paper);
  box-shadow: 0 14px 55px rgb(8 23 26 / .27);
}
.auth-panel *, .auth-panel *::before, .auth-panel *::after { box-sizing: border-box; }
.auth-panel :is(a, button, input, summary):focus-visible, .auth-photo-credit a:focus-visible {
  outline: 3px solid #378a9b; outline-offset: 3px;
}
.auth-card-head { display: flex; justify-content: space-between; align-items: center; }
.auth-wordmark { display: block; width: 119px; height: auto; color: var(--auth-text); }
.auth-close { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -9px -6px 0; font: 400 1.65rem/1 system-ui; color: var(--auth-muted); text-decoration: none; border-radius: 50%; }
.auth-close:hover { background: var(--auth-soft); }
.auth-panel h1 {
  margin: 22px 0 16px;
  font-size: clamp(1.85rem, 3vw, 2.18rem);
  font-weight: 720; line-height: 1.13; letter-spacing: -.04em;
}
.auth-mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 3px; border: 1px solid var(--auth-line); border-radius: 10px; background: var(--auth-soft);
}
.auth-mode-switch a { display: grid; place-items: center; padding: 8px 4px; min-height: 36px; border-radius: 7px; text-decoration: none; color: var(--auth-muted); font-size: .87rem; font-weight: 620; }
.auth-mode-switch a[aria-current] { background: var(--auth-paper); color: var(--auth-link); box-shadow: 0 0 0 1px var(--auth-line); }
.auth-methods, .auth-form { display: grid; gap: 14px; margin: 18px 0 0; }
.auth-methods { gap: 8px; }
.auth-panel form { margin-bottom: 0; }
.auth-methods .auth-provider-form { margin: 0; }
.auth-unavailable {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px;
  min-height: 42px; border: 1px solid var(--auth-line); border-radius: 8px; color: var(--auth-muted);
  font-weight: 550; font-size: .94rem;
}
.auth-unavailable small { font-size: .78rem; font-weight: 450; }
.auth-google, .auth-email-choice, .auth-primary {
  width: 100%; box-sizing: border-box; min-height: 44px; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; line-height: 1.4; cursor: pointer;
}
.auth-google {
  color: #1f1f1f; background: #fff; border-color: #747775; font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif;
}
.auth-google:hover { background: #f7f8f8; }
.auth-google img { width: 20px; height: 20px; object-fit: contain; }
.auth-google[aria-busy=true], .auth-primary[aria-busy=true] { cursor: progress; }
.auth-divider { display: flex; gap: 11px; align-items: center; margin: 17px 0 12px; font-size: .79rem; color: var(--auth-muted); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-line); }
.auth-email-choice { position: relative; color: var(--auth-text); border-color: var(--auth-line); background: var(--auth-soft); font-size: .94rem; font-weight: 620; list-style: none; }
.auth-email-choice::-webkit-details-marker { display: none; }
.auth-email-choice > span:empty { position: absolute; right: 15px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px,-2px); }
.auth-email[open] > summary > span { transform: rotate(225deg); }
.auth-guest { display: flex; width: fit-content; min-height: 44px; margin: 7px auto -3px; padding: 9px 14px; align-items: center; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--auth-link); }
.auth-guest:hover, .auth-recovery:hover, .auth-alternate:hover { text-decoration: underline; }
.auth-photo-credit {
  justify-self: end;
  text-align: right;
  color: #fff;
  font-size: .8rem;
  line-height: 1.48;
  text-shadow: 0 1px 3px rgb(0 0 0 / .85);
}
.auth-photo-credit strong, .auth-photo-credit a { display: block; }
.auth-photo-credit strong { font-weight: 500; }
.auth-photo-credit a { color: inherit; text-underline-offset: .14em; }
.auth-intro, .auth-hint, .auth-footnote, .auth-rules, .auth-field small { color: var(--auth-muted); }
.auth-intro { margin: 12px 0 0; line-height: 1.55; }
.auth-intro[role=status] { padding: 0; background: transparent; }
.auth-hint { font-size: .92rem; margin: 10px 0; }
.auth-address, .auth-google-identity bdi { overflow-wrap: anywhere; }
.auth-google-identity { display: grid; gap: 3px; margin: 18px 0 0; }
.auth-google-identity span { color: var(--auth-muted); font-size: .9rem; }
.auth-google-identity bdi { font-weight: 650; }
.auth-alert { font-size: .96rem; border-inline-start: 3px solid #c17550; padding: 3px 0 3px 11px; margin: 14px 0 0; }
.auth-primary { font: inherit; background: var(--auth-highlight); color: #18302d; font-weight: 680; }
.auth-primary:hover { background: #f8cc63; }
.auth-field { display: grid; gap: 5px; min-width: 0; }
.auth-field label { font-size: .93rem; font-weight: 620; }
.auth-field input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--auth-line); border-radius: 7px; background: var(--auth-input); color: var(--auth-text); font: inherit; }
.auth-field input[aria-invalid=true] { border-color: #c17550; }
.auth-field .errorlist { margin: 4px 0; font-size: .9rem; }
.auth-rules { font-size: .88rem; }
.auth-rules summary { cursor: pointer; }
.auth-rules ul { margin: 8px 0 0; padding-inline-start: 19px; }
.auth-alternate, .auth-recovery { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; color: var(--auth-link); font-size: .9rem; font-weight: 570; text-decoration: none; }
.auth-form .auth-recovery { justify-self: end; margin: -8px 0; }
.auth-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: .93rem; }
.auth-consent input { width: 18px; height: 18px; margin: 3px 0 0; }
.auth-consent a, .auth-footnote a { color: var(--auth-link); }
.auth-footnote { border-top: 1px solid var(--auth-line); margin: 15px 0 0; padding-top: 13px; font-size: .92rem; }
.auth-cancel { text-align: center; margin: 4px 0 0; }
.auth-cancel button { background: transparent; color: var(--auth-muted); }
@media (max-width: 520px) {
  .auth-shell { gap: 12px; padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }
  .auth-panel { padding: 19px 20px 14px; border-radius: 16px; }
  .auth-wordmark { width: 106px; }
  .auth-photo-credit { font-size: .75rem; }
}
