/* Sign-in / organization screens. Uses the app's color tokens from index.html. */
:root.gated header, :root.gated main, :root.gated #landing { display: none !important; }
#gate {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; position: relative; overflow: hidden; background: var(--bg);
}
#gate::before {
  content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background: linear-gradient(90deg, var(--out) 0 50%, var(--in) 50% 100%);
}
.gate-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 30px 28px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.gate-card h1 { font-size: 26px; margin: 0 0 4px; }
.gate-card .land-mark { display: inline-block; width: 52px; height: 52px; border-radius: 13px; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--out) 0 50%, var(--in) 50% 100%); }
.gate-sub { color: var(--muted); margin: 0 0 18px; }
.gate-card form { text-align: left; margin: 0; }
.gf { display: block; margin-bottom: 12px; }
.gf span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.gate-main { width: 100%; padding: 13px 16px; font-size: 15.5px; margin-top: 4px; }
.gate-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; font-size: 15px; }
.gate-google svg { width: 18px; height: 18px; }
.gate-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 14px 0; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.gate-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.gate-msg { border-radius: 8px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; margin: 0 0 14px; text-align: left; background: var(--sunken); }
.gate-msg.bad { background: var(--out-soft); color: var(--out); }
.gate-msg.ok { background: var(--in-soft); color: var(--in); }
.gate-h { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 16px 0 6px; text-align: left; }
.gate-list { text-align: left; }
.gate-org { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; background: var(--sunken);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; color: var(--ink); text-align: left; }
.gate-org:hover { border-color: var(--accent); }
.gate-org span { color: var(--muted); font-size: 13px; font-weight: 600; }
.gate-row { display: flex; gap: 8px; }
.gate-row input { flex: 1; min-width: 0; }
.gate-row .btn { flex: none; }
.inv-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; background: var(--sunken); padding: 3px 7px; border-radius: 5px; }
@media (max-width: 700px) {
  .gate-card { padding: 30px 20px 22px; }
  .gate-card input { font-size: 16px; }
}
