:root {
  --bg: #060708;
  --panel: rgba(13, 16, 20, .9);
  --line: rgba(255, 255, 255, .12);
  --muted: #969eaa;
  --white: #f5f7fa;
  --blue: #32b7ff;
  --orange: #ff7a28;
  --green: #4ee48a;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .018;
  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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.ambient > i { position: absolute; width: 48vw; height: 48vw; min-width: 460px; min-height: 460px; border-radius: 50%; filter: blur(85px); opacity: .17; }
.ambient > i:first-child { right: -15vw; top: -22vw; background: radial-gradient(circle, rgba(50, 183, 255, .7), transparent 67%); animation: drift-blue 20s ease-in-out infinite alternate; }
.ambient > i:last-child { left: -20vw; bottom: -26vw; background: radial-gradient(circle, rgba(255, 122, 40, .45), transparent 68%); animation: drift-orange 26s ease-in-out infinite alternate; }

.auth-shell { position: relative; z-index: 1; width: min(1240px, calc(100% - 48px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; font: 700 14px Manrope, sans-serif; letter-spacing: .23em; }
.mark { width: 24px; height: 22px; display: flex; align-items: flex-end; gap: 3px; }
.mark i { width: 5px; border-radius: 5px; background: var(--blue); transform: skew(-14deg); }
.mark i:nth-child(1) { height: 11px; }
.mark i:nth-child(2) { height: 19px; }
.mark i:nth-child(3) { height: 14px; background: var(--orange); }
.secure-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #a8b0bb; font-size: 10px; letter-spacing: .04em; }
.secure-pill i, .status-dot, .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.auth-stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); align-items: center; gap: clamp(60px, 10vw, 150px); padding: 70px 5vw; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #adb5c0; font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.eyebrow i { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.intro-copy h1 { margin: 22px 0 18px; font: 600 clamp(54px, 7vw, 96px)/.98 Manrope, sans-serif; letter-spacing: -.06em; }
.intro-copy > p { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.trust-row span { padding: 8px 11px; border: 1px solid rgba(50, 183, 255, .15); border-radius: 999px; background: rgba(50, 183, 255, .045); color: #9aa5b2; font-size: 9px; }

.auth-card { width: 100%; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(155deg, rgba(18, 22, 27, .96), rgba(9, 11, 14, .94)); box-shadow: 0 38px 100px rgba(0, 0, 0, .42); backdrop-filter: blur(18px); }
.mini-label { color: #89929e; font-size: 9px; font-weight: 600; letter-spacing: .17em; }
.auth-card h2 { margin: 12px 0 6px; font: 600 29px Manrope, sans-serif; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.primary-button { width: 100%; min-height: 52px; padding: 0 17px; border: 0; border-radius: 999px; display: flex; align-items: center; gap: 10px; background: var(--blue); color: #00121d; font: 600 12px "DM Sans", sans-serif; }
.primary-button > span:nth-child(2) { flex: 1; text-align: center; }
.primary-button i { font-style: normal; font-size: 15px; }
.primary-button:disabled { cursor: not-allowed; background: #1c252c; color: #75808a; box-shadow: inset 0 0 0 1px var(--line); }
.primary-button.ready { cursor: pointer; background: var(--blue); color: #00121d; box-shadow: 0 10px 30px rgba(50, 183, 255, .18); }
.primary-button.ready:hover { background: #74d0ff; transform: translateY(-1px); }
.lock { font-size: 14px; }
.access-status { display: flex; align-items: center; gap: 11px; margin: 17px 2px 0; }
.access-status > span:last-child { display: flex; flex-direction: column; }
.access-status b { color: #aeb6c0; font-size: 10px; font-weight: 500; }
.access-status small { margin-top: 2px; color: #68727d; font-size: 9px; }
.access-status .status-dot { flex: 0 0 auto; background: var(--orange); box-shadow: 0 0 10px rgba(255, 122, 40, .8); }
.access-status.ready .status-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }

.divider { position: relative; margin: 27px 0 17px; border-top: 1px solid var(--line); text-align: center; }
.divider span { position: relative; top: -9px; padding: 0 10px; background: #0d1014; color: #727b86; font-size: 9px; }
.demo-button { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(50, 183, 255, .2); border-radius: 14px; background: rgba(50, 183, 255, .055); color: inherit; text-decoration: none; transition: .22s ease; }
.demo-button:hover { border-color: rgba(50, 183, 255, .5); background: rgba(50, 183, 255, .1); transform: translateY(-2px); }
.demo-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(50, 183, 255, .1); color: var(--blue); }
.demo-button > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.demo-button b { font-size: 11px; }
.demo-button small { margin-top: 2px; color: #818b97; font-size: 9px; }
.demo-button > i { color: var(--blue); font-style: normal; }
.privacy-note { display: flex; gap: 9px; margin: 21px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); color: #727c87 !important; font-size: 9px !important; line-height: 1.6; }
.privacy-note span { color: var(--green); }

footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #626b75; font-size: 9px; }
footer nav { display: flex; gap: 20px; }
footer a { color: #7e8792; text-decoration: none; }
footer a:hover { color: var(--blue); }

@keyframes drift-blue { to { transform: translate(-12vw, 20vh) scale(1.08); } }
@keyframes drift-orange { to { transform: translate(28vw, -18vh) scale(1.03); } }

@media (max-width: 850px) {
  .auth-shell { width: min(100% - 30px, 680px); }
  .auth-stage { grid-template-columns: 1fr; gap: 42px; padding: 55px 0; }
  .intro-copy { text-align: center; }
  .intro-copy > p { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .intro-copy h1 { font-size: clamp(50px, 14vw, 75px); }
}

@media (max-width: 520px) {
  .auth-shell { width: calc(100% - 28px); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .topbar { height: 78px; }
  .secure-pill { padding: 7px 9px; }
  .auth-stage { padding: 42px 0; }
  .auth-card { padding: 27px 22px; border-radius: 20px; }
  .trust-row { display: none; }
  .demo-button small { line-height: 1.4; }
  .primary-button, .demo-button { min-height: 52px; }
  footer { align-items: flex-start; gap: 12px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); }
  footer nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient > i, .demo-button, .primary-button { animation: none; transition: none; }
}
