/* MC-GATE pages (pre-authentication): the shell's look without its token file (which is served only behind the
   session); the few colours below are the token values of contracts/mc/tokens.v1.css. Logical properties (RTL/LTR). */
*, *::before, *::after { box-sizing: border-box; }
html { background: #05070D; color: #EEF0FA; color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px;
  font: 400 15px/23px -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Segoe UI", "Noto Sans Arabic", system-ui, sans-serif;
  background: radial-gradient(1200px 800px at 100% 0%, rgba(157,144,255,.10), transparent 62%),
    radial-gradient(900px 700px at 0% 100%, rgba(69,216,246,.06), transparent 60%), #05070D;
}
.gate {
  inline-size: min(440px, 100%); padding: 28px 24px; border-radius: 16px; border: 1px solid rgba(148,163,255,.14);
  background: rgba(17,24,51,.72); display: grid; gap: 16px;
}
.gate-head { display: flex; justify-content: space-between; align-items: center; }
.mark { font-weight: 700; letter-spacing: .04em; background: linear-gradient(100deg,#45D8F6 0%,#9D90FF 48%,#E86AD9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 20px; }
h1 { margin: 0 0 8px; font-size: 24px; line-height: 32px; font-weight: 600; }
p { margin: 0 0 8px; color: #B7BCD6; }
.quiet { color: #8E94B2; font-size: 13px; }
button { font: inherit; color: inherit; cursor: pointer; }
.lang { background: transparent; border: 1px solid rgba(148,163,255,.20); border-radius: 999px; padding: 4px 12px; color: #B7BCD6; }
.tap { min-block-size: 48px; border-radius: 12px; border: 0; padding: 12px 16px; font-weight: 600; color: #05070D;
  background: linear-gradient(100deg,#45D8F6 0%,#9D90FF 48%,#E86AD9 100%); }
.tap:disabled { opacity: .6; cursor: progress; }
.code { display: grid; gap: 6px; color: #B7BCD6; }
.code input { inline-size: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #5B6796; background: #0B1020;
  color: #EEF0FA; font: 500 15px/22px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.status { min-block-size: 23px; margin: 0; color: #EEF0FA; }
.fingerprint { margin: 0; font: 600 28px/36px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; text-align: center; }
.fingerprint:empty { display: none; }
:focus-visible { outline: 2px solid #45D8F6; outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
