/* gate.css — the Rain kernel's OTP identity gate. Deliberately neutral (deep
   slate + KR blue accent, system fonts): the gate is platform chrome, the same
   for every project; all branding lives in the injected content. */

#contentRoot[aria-hidden="true"] { display: none; }

#gate {
  position: fixed; inset: 0; z-index: 2147483647;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 50% 30%, #2e3547 0%, #232838 55%, #14161f 100%);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding: 24px;
}

.gate-card { width: min(440px, 92vw); text-align: center; }
.gate-ey { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: #8fb3e8; font-weight: 600; margin-bottom: 14px; }
.gate-card h2 { font-weight: 600; font-size: 28px; color: #f5f6f8;
  margin: 0 0 10px; letter-spacing: -0.01em; }
.gate-card p { font-size: 13.5px; line-height: 1.6; color: rgba(245, 246, 248, 0.62);
  margin: 0 0 22px; font-weight: 300; }
.gate-card p strong { color: #f5f6f8; font-weight: 500; }
.gate-hint { color: rgba(245, 246, 248, 0.45); }

.gate-card form { display: flex; gap: 8px; }
.gate-card input {
  flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 208, 236, 0.3); border-radius: 7px;
  padding: 13px 15px; color: #f5f6f8; font-size: 14px; outline: none;
  transition: border-color 0.15s ease; font-family: inherit;
}
#codeInput { text-align: center; letter-spacing: 0.5em; font-size: 20px; font-weight: 600; }
.gate-card input::placeholder { color: rgba(245, 246, 248, 0.38); letter-spacing: normal; }
.gate-card input:focus { border-color: #8fb3e8; }

.gate-card button[type="submit"] {
  background: #8fb3e8; color: #1a2030; border: none; border-radius: 7px;
  padding: 0 24px; height: 46px; font-weight: 600; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease; white-space: nowrap;
}
.gate-card button[type="submit"]:hover:not(:disabled) { background: #b0cbf2; transform: translateY(-1px); }
.gate-card button:disabled { opacity: 0.55; cursor: default; }

.gate-msg { color: #ffb3a0; font-size: 12.5px; margin-top: 14px; min-height: 16px; line-height: 1.5; }
.gate-msg.ok { color: #9ad9b0; }

.gate-link { background: none; border: none; color: rgba(245, 246, 248, 0.55);
  font-size: 12px; cursor: pointer; margin: 16px 10px 0; text-decoration: underline;
  font-family: inherit; padding: 0; }
.gate-link:hover { color: #8fb3e8; }

.gate-ft { margin-top: 32px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 246, 248, 0.32); }

@keyframes gateShake { 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(4px)} 50%{transform:translateX(-6px)} }
.gate-card.shake { animation: gateShake 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .gate-card.shake { animation: none; } }
