/* Anmelde-/Registrierungsbildschirm vor der App, im ochevo-Design (docs/marke.md) */
.gate { --cobalt: #294CF4; --cobalt-d: #1D3BD0; --ink: #17191D; --canvas: #F5F4F1; --white: #FFFFFF; --muted: #5B5F68; --line: #E4E2DC;
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto; background: var(--canvas); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 32px 16px; }
/* Karte mittig, aber bei kleinen Fenstern von oben scrollbar (statt oben abgeschnitten) */
.gate-card { margin-top: auto; }
.gate::after { content: ""; margin-bottom: auto; }
.gate[hidden] { display: none; }
.gate::before { content: ""; position: fixed; inset: auto -20% -45% -20%; height: 70%; background: radial-gradient(closest-side, rgba(41, 76, 244, .14), transparent); pointer-events: none; }
.gate-card { position: relative; width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 1px 2px rgba(23, 25, 29, .06), 0 20px 50px rgba(23, 25, 29, .10); }
.gate-logo { display: block; height: 40px; width: auto; margin: 0 auto 8px; }
.gate-sub { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.gate-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--canvas); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.gate-tabs button { border: 0; background: transparent; height: 38px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.gate-tabs button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 25, 29, .12); }
.gate form, .gate .pane { display: flex; flex-direction: column; gap: 14px; }
.gate form[hidden], .gate .pane[hidden] { display: none; }
.gate label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.gate input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.gate input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(41, 76, 244, .15); }
.gate input.bad { border-color: #D64545; }
.gate .g-hint { font-weight: 400; font-size: 13px; color: var(--muted); min-height: 1em; margin-top: -2px; background: none; padding: 0; border: 0; }
.gate .g-hint.ok { color: #1F8A4C; } .gate .g-hint.err { color: #C23B3B; }
.gate .g-btn { height: 48px; border: 0; border-radius: 12px; background: var(--cobalt); color: var(--white); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(41, 76, 244, .28); transition: background .15s, transform .15s; }
.gate .g-btn:hover { background: var(--cobalt-d); }
.gate .g-btn:active { transform: translateY(1px); }
.gate .g-btn[disabled] { opacity: .6; cursor: wait; }
.gate .g-btn.ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.gate .g-link { align-self: center; border: 0; background: none; color: var(--cobalt); font: inherit; font-size: 14px; cursor: pointer; padding: 4px; }
.gate .g-msg { font-size: 14px; border-radius: 10px; padding: 0; }
.gate .g-msg.err { color: #9E2B2B; background: #FDECEC; padding: 10px 12px; }
.gate .g-msg.ok { color: #1B6B3C; background: #E8F6EE; padding: 10px 12px; }
.gate .legal { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
.gate .legal a, .gate-foot a { color: var(--muted); }
.gate .big-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(41, 76, 244, .1); display: grid; place-items: center; margin: 4px auto 0; }
.gate .big-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cobalt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gate .pane h2 { text-align: center; margin: 0; font-size: 20px; }
.gate .pane p { text-align: center; color: var(--muted); margin: 0; }
.gate-foot { position: relative; margin-top: 20px; font-size: 13px; color: var(--muted); }
.gate-dev { position: relative; margin-top: 10px; }
.gate-dev button { border: 1px dashed #b9b6ad; background: transparent; color: var(--muted); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.gate-loading { color: var(--muted); text-align: center; padding: 30px 0; }
@media (max-width: 420px) { .gate-card { padding: 24px 18px; border-radius: 16px; } }
