:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0d1c;
  color: #f7f8ff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(88, 102, 210, .34), transparent 36rem),
    linear-gradient(145deg, #0a0d1c, #13182f 62%, #090c18);
}
button, input { font: inherit; }
button { cursor: pointer; }
.shell {
  width: min(100% - 2rem, 34rem);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.brand { text-align: center; margin-bottom: 1.4rem; }
.brand img { width: 9.5rem; height: auto; object-fit: contain; }
.brand p { margin: .25rem 0 0; color: #aeb7dc; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.4rem;
  padding: clamp(1.25rem, 5vw, 2rem);
  background: rgba(21, 27, 54, .94);
  box-shadow: 0 1.5rem 5rem rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
}
.eyebrow { margin: 0 0 .6rem; color: #f5b544; font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.05; }
.login-card > p:not(.eyebrow), .subtitle, .note { color: #c7cce3; line-height: 1.55; }
form { display: grid; gap: .75rem; margin-top: 1.5rem; }
label { font-size: .82rem; font-weight: 750; color: #dfe3f7; }
input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: .8rem;
  padding: .9rem 1rem;
  background: #0e1328;
  color: #fff;
  outline: none;
}
input:focus { border-color: #f5b544; box-shadow: 0 0 0 3px rgba(245,181,68,.16); }
.primary, .secondary {
  border: 0;
  border-radius: .8rem;
  padding: .92rem 1rem;
  font-weight: 800;
}
.primary { margin-top: .4rem; background: linear-gradient(135deg, #f6ca58, #f08a38); color: #161323; }
.primary:disabled { opacity: .55; cursor: wait; }
.qr-card { text-align: center; }
.qr-frame {
  display: grid;
  place-items: center;
  width: min(100%, 24rem);
  aspect-ratio: 1;
  margin: 1.25rem auto;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  color: #30364f;
  font-weight: 700;
}
.qr-frame svg { display: block; width: 100%; height: 100%; }
.timer-row { display: flex; justify-content: space-between; color: #c7cce3; font-size: .9rem; }
.timer-row strong { color: #fff; }
.progress { height: .45rem; margin-top: .65rem; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #f08a38, #f6ca58); transition: width .25s linear; }
.note { margin: 1rem 0 0; font-size: .82rem; }
.actions { display: grid; gap: .65rem; margin-top: 1.25rem; }
.secondary { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; }
.secondary:hover { background: rgba(255,255,255,.12); }
.link-button { border: 0; padding: .55rem; background: transparent; color: #aeb7dc; text-decoration: underline; }
.status { min-height: 1.5rem; margin: 1rem .5rem 0; color: #f4c56a; text-align: center; font-size: .88rem; line-height: 1.45; }
[hidden] { display: none !important; }
@media (max-width: 420px) {
  .shell { width: min(100% - 1rem, 34rem); padding-top: 1rem; }
  .brand img { width: 7.5rem; }
  .card { border-radius: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
