/* Sign-in screen for the hosted atlas. Uses the page's own tokens so it
   matches in light and dark. */
#gate {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 16px;
  background: var(--bg);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--fg);
}
#gate[hidden] { display: none; }
.gate-card {
  width: 100%; max-width: 360px; padding: 28px 24px;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
}
.gate-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.gate-sub { margin: 0 0 18px; color: var(--fg-2); }
.gate-card form { display: grid; gap: 10px; }
.gate-card input {
  font: inherit; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg);
}
.gate-card input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.gate-card button[type=submit] {
  font: inherit; font-weight: 600; padding: 11px 13px; border: 0; border-radius: 11px;
  background: var(--ink); color: var(--ink-fg); cursor: pointer;
}
.gate-card button[disabled] { opacity: .5; cursor: default; }
.gate-msg { min-height: 1.4em; margin: 12px 0 0; color: var(--warn); font-size: 14px; }
.gate-link {
  font: inherit; font-size: 14px; margin-top: 6px; padding: 0; border: 0;
  background: none; color: var(--link); cursor: pointer;
}
/* The sign-out button adds one icon to the bar. On a phone, tighten the bar so
   it still fits on one line beside the tabs. */
@media (max-width: 560px) {
  .bar { gap: 6px; }
  .seg button { padding: 5px 7px; }
  .bar .icon-btn { width: 30px; }
}
.gate-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; padding: 11px 13px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--fg);
}
.gate-google:hover { background: var(--surface-2); }
.gate-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--fg-3); font-size: 13px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
