/* Vetted Minds private-preview lock page.
   Space-gray metal (drawn in /lock/lock.js on .metal) + light sheen (.sheen) + circuit traces (.traces).
   The panel is a machined inset with the double white outline and the triangle grid from the reference. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@property --sx { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --sy { syntax: "<percentage>"; inherits: false; initial-value: 18%; }

:root {
  --metal: #474a4f;
  --line: rgb(246 251 255);
  --glow: 150 232 255;
  --bad: 255 104 116;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--metal); }
body {
  margin: 0; overflow: hidden; overscroll-behavior: none;
  color: #f3f5f8; background: linear-gradient(135deg, #5b5f65, #3f4247 70%, #35383c);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: none;                      /* the whole page is a touch surface: no scroll, pan or zoom */
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.metal, .traces, .sheen { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.metal { z-index: 0; }
.sheen {
  z-index: 1; overflow: hidden; mix-blend-mode: soft-light;
  background:
    radial-gradient(70% 55% at var(--sx) var(--sy), rgb(255 255 255 / 0.34), transparent 70%),
    radial-gradient(60% 50% at calc(100% - var(--sx)) calc(100% - var(--sy)), rgb(0 0 0 / 0.22), transparent 72%);
  transition: --sx 1.6s var(--ease), --sy 1.6s var(--ease);
}
.sheen::after {                            /* very slow light sweep across the metal */
  content: ""; position: absolute; inset: -50% -100%;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 0.16) 50%, transparent 58%);
  animation: sweep 18s linear infinite;
}
@keyframes sweep { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.traces { z-index: 2; }

/* ---------- panel ---------- */
.stage {
  position: relative; z-index: 3; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.panel {
  position: relative; width: min(392px, 100%); padding: 42px 34px 26px;
  border: 2px solid rgb(250 252 255 / 0.94); border-radius: 3px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='45.033' viewBox='0 0 26 45.033'%3E%3Cpath d='M0 0H26L13 22.517z' fill='%23d6ecff' fill-opacity='.035'/%3E%3Cpath d='M0 0H26M0 22.517H26M0 45.033H26M0 0L26 45.033M26 0L0 45.033' stroke='%23e4f1ff' stroke-opacity='.11' stroke-width='.8' fill='none'/%3E%3C/svg%3E") center / 26px 45.033px,
    linear-gradient(180deg, rgb(30 33 38 / 0.80), rgb(20 22 26 / 0.86));
  -webkit-backdrop-filter: blur(16px) saturate(1.05); backdrop-filter: blur(16px) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.10),          /* machined top lip */
    inset 0 14px 30px -10px rgb(0 0 0 / 0.55),      /* inset depth */
    0 0 0 1px rgb(0 0 0 / 0.30),                    /* cut line into the metal */
    0 1px 0 1px rgb(255 255 255 / 0.10),            /* lower bevel catching light */
    0 30px 70px -28px rgb(0 0 0 / 0.65);
  text-align: center; touch-action: manipulation;
  transition: border-color 200ms var(--ease), transform 500ms var(--ease), opacity 500ms var(--ease), filter 500ms var(--ease);
}
.panel::before {                                     /* inner line of the double outline */
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  border: 1px solid rgb(222 238 255 / 0.55); border-radius: 1px;
  box-shadow: 0 0 0 4px rgb(10 12 15 / 0.35);        /* dark band between the two lines */
  transition: border-color 200ms var(--ease);
}
.lockup { display: block; width: 214px; max-width: 72%; height: auto; margin: 0 auto 22px; }
.kicker {
  margin: 0 0 28px; font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgb(222 232 244 / 0.78);
}
.label { display: block; margin: 0 0 8px; text-align: left; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: rgb(222 232 244 / 0.82); }
.field {
  display: block; width: 100%; height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; letter-spacing: 0.04em; color: #fff;   /* 16px: no iOS zoom on focus */
  background: rgb(8 9 11 / 0.55); border: 1px solid rgb(255 255 255 / 0.24); border-radius: 2px;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.45);
  outline: none; -webkit-user-select: text; user-select: text;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field::selection { background: rgb(255 255 255 / 0.28); color: #fff; }
.field:focus { border-color: rgb(255 255 255 / 0.85); box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.45), 0 0 0 3px rgb(var(--glow) / 0.20); }
.unlock {
  display: block; width: 100%; height: 50px; margin-top: 14px;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.02em; color: #15171a;
  background: linear-gradient(180deg, #fbfcfd, #d8dce1); border: 0; border-radius: 2px; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / 0.14), 0 6px 18px -8px rgb(0 0 0 / 0.7);
  transition: filter 160ms var(--ease), transform 100ms var(--ease);
}
.unlock:hover { filter: brightness(1.04); }
.unlock:active { transform: translateY(1px); filter: brightness(0.97); }
.unlock:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.unlock[disabled] { cursor: progress; filter: brightness(0.9); }
.msg { min-height: 21px; margin: 14px 0 0; font-size: 14px; color: rgb(222 232 244 / 0.82); }
.panel.is-wrong .msg, .has-msg .msg { color: rgb(255 190 196); }

.panel.is-wrong { border-color: rgb(var(--bad)); animation: shake 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.panel.is-wrong::before { border-color: rgb(var(--bad) / 0.7); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}
.panel.is-open { transform: scale(0.97); opacity: 0; filter: brightness(1.6); transition-delay: 380ms; }

@media (max-width: 420px) {
  .panel { padding: 36px 24px 22px; }
  .lockup { width: 196px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheen { transition: none; }
  .sheen::after { animation: none; display: none; }
  .panel, .panel::before { transition: none; }
  .panel.is-wrong { animation: none; }
  .panel.is-open { transition: opacity 150ms linear; transform: none; filter: none; transition-delay: 0s; }
}
