:root {
  --bg: #e2e6eb;
  --text: #443c3c;
  --muted: #766f70;
  --blue: #3c94d4;
  --blue-dark: #287dbb;
  --danger: #b54242;
  --glass: rgba(255, 255, 255, 0.48);
  --glass-border: rgba(255, 255, 255, 0.72);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", sans-serif;
}

.toki-background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.toki-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 1;
  transition: opacity .8s ease-in-out, visibility .8s ease-in-out;
}

.toki-loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: min(280px, 62vw);
  height: auto;
  animation: loader-logo-in .8s ease-in-out both;
}

.page-shell {
  position: relative;
  z-index: 10;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 20px;
}

.page-shell.is-loading { opacity: 0; transform: translateY(14px); }
.page-shell.is-ready { animation: fadeIn .5s cubic-bezier(.2,.8,.2,1) forwards; }

.access-card {
  width: min(92vw, 460px);
  padding: 40px 42px 34px;
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: var(--glass);
  box-shadow: 0 24px 80px rgba(57, 69, 100, .13), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.brand-mark { display: flex; height: 105px; justify-content: center; margin-bottom: 22px; }
.brand-mark img { display: block; width: 315px; max-width: 100%; height: 105px; object-fit: contain; object-position: center; }
h1 { margin: 0 0 21px; font-family: "Outfit", sans-serif; font-size: 1.22rem; font-weight: 600; line-height: 1.1; letter-spacing: -.015em; text-align: center; }
.code-fields { display: flex; align-items: center; justify-content: center; gap: 9px; }
.code-group { display: flex; gap: 7px; }
.code-digit { width: 46px; height: 54px; padding: 0; border: 1px solid rgba(68,60,60,.12); border-radius: 11px; outline: none; color: var(--text); background: rgba(255,255,255,.78); box-shadow: inset 0 1px 3px rgba(0,0,0,.02); font: 600 1.35rem/1 "Outfit", sans-serif; text-align: center; transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
.code-digit:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(60,148,212,.14); transform: translateY(-2px); }
.code-digit:disabled { opacity: .65; }
.code-separator { color: rgba(68,60,60,.42); font: 500 1.35rem/1 "Outfit", sans-serif; }
.form-message { min-height: 18px; margin: 16px 0 0; color: #878181; font-size: .75rem; line-height: 1.45; text-align: center; }
.form-message:empty { display: none; }
.form-message.error { color: var(--danger); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loader-logo-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 420px) { .access-card { padding: 34px 16px 38px; border-radius: 22px; } .brand-mark { margin-bottom: 25px; } .code-fields { gap: 6px; } .code-group { gap: 4px; } .code-digit { width: 39px; height: 49px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
