:root {
  --navy: #0B1F3A;
  --navy-2: #0f2a52;
  --blue: #123FA8;
  --lime: #C9DE00;
  --lime-2: #d8ea2e;
  --danger: #ff8a7a;
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: #fff;
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; overflow: hidden;
  background:
    radial-gradient(1100px 700px at 85% 10%, rgba(18,63,168,.75), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(18,63,168,.35), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 80%);
}
.curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.curve .line { fill: none; stroke: var(--lime); stroke-width: 2.5; opacity: .55;
  stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.4s ease-out .2s forwards;
  vector-effect: non-scaling-stroke; }
.curve .area { opacity: 0; animation: fade 1.6s ease-out 1.2s forwards; }
.glow { position: absolute; width: 520px; height: 520px; right: -120px; top: 12%;
  background: radial-gradient(circle, rgba(201,222,0,.18), transparent 65%); filter: blur(10px); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- card ---------- */
.wrap { position: relative; min-height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px 16px; gap: 20px; }
.card { width: 100%; max-width: 400px; padding: 36px 32px 32px;
  background: rgba(11,31,58,.55); border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  display: flex; flex-direction: column; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.brand-chip { align-self: flex-start; background: #fff; border-radius: 10px; padding: 7px 12px; display: inline-flex; }
.brand-chip img { height: 24px; width: auto; display: block; }
.eyebrow { margin-top: 28px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
h1 { margin-top: 8px; font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field { margin-top: 26px; position: relative; display: flex; align-items: center;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.16); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--lime); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(201,222,0,.15); }
.field.invalid { border-color: var(--danger); }
.lock { width: 18px; height: 18px; margin-left: 14px; flex: none; fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff;
  font: inherit; font-size: 1rem; padding: 14px 10px 14px 10px; }
.field input::placeholder { color: rgba(255,255,255,.45); }
.toggle { background: none; border: 0; color: rgba(255,255,255,.65); font: inherit; font-size: .8rem; font-weight: 600;
  padding: 8px 14px; cursor: pointer; border-radius: 8px; }
.toggle:hover, .toggle:focus-visible { color: #fff; outline: none; }

.error { margin-top: 10px; color: var(--danger); font-size: .88rem; }

.btn { margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--lime); color: var(--navy); border: 0; border-radius: 12px; padding: 14px 20px;
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 8px 24px rgba(201,222,0,.22); }
.btn:hover { background: var(--lime-2); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }

.foot { font-size: .78rem; color: rgba(255,255,255,.5); text-align: center; line-height: 1.9; }
.foot a { color: rgba(255,255,255,.85); font-weight: 600; text-decoration: none; font-size: .85rem; }
.foot a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .card { padding: 28px 22px 24px; border-radius: 18px; }
  h1 { font-size: 1.55rem; }
  .glow { width: 360px; height: 360px; right: -160px; }
}
@media (prefers-reduced-motion: reduce) {
  .curve .line { animation: none; stroke-dashoffset: 0; }
  .curve .area { animation: none; opacity: 1; }
  .card { animation: none; }
}
