:root{
  --bg0:#070a12;
  --bg1:#0a1020;
  --card:#0b1222cc;
  --stroke:#233152;
  --stroke2:#1a2440;
  --text:#e8eefc;
  --muted:#a8b3d3;
  --faint:#7f8ab0;
  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --shadow2: 0 8px 30px rgba(0,0,0,.35);
  --accent:#7c5cff;
  --accent2:#1fd1ff;
  --danger:#ff3b6b;
  --ok:#34d399;
  --radius: 18px;
  --radius2: 14px;
  --ring: 0 0 0 4px rgba(124,92,255,.20);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(31,209,255,.14), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.bg__blob{
  position:absolute;
  width: 680px;
  height: 680px;
  filter: blur(42px);
  opacity: .75;
  border-radius: 999px;
  transform: translate3d(0,0,0);
}
.bg__blob--a{
  left:-220px;
  top:-260px;
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.55), rgba(124,92,255,.0) 62%);
}
.bg__blob--b{
  right:-260px;
  top:40px;
  background: radial-gradient(circle at 30% 30%, rgba(31,209,255,.42), rgba(31,209,255,.0) 64%);
}
.bg__grid{
  position:absolute;
  inset:0;
  opacity:.25;
  background-image:
    linear-gradient(to right, rgba(35,49,82,.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35,49,82,.45) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(closest-side at 50% 25%, rgba(0,0,0,.85), transparent 72%);
}

.shell{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: 28px 16px 22px;
  position:relative;
  z-index:1;
}

.card{
  width: min(520px, 100%);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    rgba(11,18,34,.65);
  border: 1px solid rgba(35,49,82,.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow:hidden;
}
.card__header{
  padding: 26px 26px 12px;
  border-bottom: 1px solid rgba(35,49,82,.55);
  background:
    radial-gradient(680px 220px at 20% 0%, rgba(124,92,255,.20), transparent 65%),
    radial-gradient(540px 220px at 90% 10%, rgba(31,209,255,.12), transparent 60%);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}
.brand__mark{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(31,209,255,.75));
  box-shadow: 0 10px 30px rgba(124,92,255,.25);
  font-weight: 800;
  letter-spacing: .5px;
}
.brand__text{
  font-weight: 750;
  letter-spacing: .2px;
  color: rgba(232,238,252,.92);
}
.title{
  margin:0;
  font-size: 22px;
  letter-spacing: .2px;
}
.subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.form{
  padding: 18px 26px 24px;
}
.field{ margin-top: 14px; }
.label{
  display:block;
  font-size: 13px;
  color: rgba(232,238,252,.88);
  margin-bottom: 8px;
}
.control{ position:relative; }
.control--withButton .input{ padding-right: 104px; }
.input{
  width:100%;
  padding: 12px 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(35,49,82,.95);
  background: rgba(7,10,18,.40);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .16s ease, box-shadow .16s ease, transform .10s ease;
}
.input::placeholder{ color: rgba(168,179,211,.55); }
.input:focus{
  border-color: rgba(124,92,255,.85);
  box-shadow: var(--ring);
}
.input[aria-invalid="true"]{
  border-color: rgba(255,59,107,.70);
  box-shadow: 0 0 0 4px rgba(255,59,107,.18);
}

.ghost{
  position:absolute;
  top:50%;
  right:10px;
  transform: translateY(-50%);
  border: 1px solid rgba(35,49,82,.85);
  background: rgba(11,18,34,.50);
  color: rgba(232,238,252,.88);
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-size: 12px;
  transition: transform .12s ease, border-color .16s ease, background .16s ease;
}
.ghost:hover{
  border-color: rgba(124,92,255,.75);
  background: rgba(11,18,34,.72);
}
.ghost:active{ transform: translateY(-50%) scale(.98); }

.hint{
  margin: 8px 0 0;
  color: rgba(168,179,211,.72);
  font-size: 12px;
  line-height: 1.35;
}
.mono{ font-family: var(--mono); }

.row{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.link{
  color: rgba(232,238,252,.78);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px dashed rgba(232,238,252,.24);
}
.link:hover{
  border-bottom-color: rgba(232,238,252,.46);
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  user-select:none;
  cursor:pointer;
}
.check__input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.check__box{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(35,49,82,.95);
  background: rgba(7,10,18,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.check__label{ font-size: 13px; color: rgba(232,238,252,.88); }
.check__input:focus-visible + .check__box{
  box-shadow: var(--ring);
  border-color: rgba(124,92,255,.85);
}
.check__input:checked + .check__box{
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(31,209,255,.65));
  border-color: rgba(124,92,255,.65);
}
.check__input:checked + .check__box::after{
  content:"";
  width:9px;
  height:5px;
  border-left: 2px solid rgba(7,10,18,.95);
  border-bottom: 2px solid rgba(7,10,18,.95);
  transform: rotate(-45deg);
  margin-top:-1px;
}

.alert{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,59,107,.45);
  background: rgba(255,59,107,.10);
  display:flex;
  align-items:flex-start;
  gap:10px;
  box-shadow: var(--shadow2);
}
.alert__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255,59,107,.18);
}
.alert__text{
  font-size: 13px;
  color: rgba(232,238,252,.92);
  line-height: 1.35;
}

.primary{
  margin-top: 16px;
  width:100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(7,10,18,.95);
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(31,209,255,1));
  cursor:pointer;
  position:relative;
  overflow:hidden;
  box-shadow: 0 16px 40px rgba(124,92,255,.18);
  transition: transform .12s ease, filter .18s ease;
}
.primary:hover{ filter: brightness(1.04); }
.primary:active{ transform: translateY(1px); }
.primary:focus-visible{ outline:none; box-shadow: 0 0 0 4px rgba(31,209,255,.25), 0 16px 40px rgba(124,92,255,.18); }
.primary__glow{
  position:absolute;
  inset:-60px -80px;
  background:
    radial-gradient(320px 120px at 30% 30%, rgba(255,255,255,.38), transparent 70%),
    radial-gradient(220px 100px at 70% 60%, rgba(255,255,255,.24), transparent 70%);
  transform: translate3d(0,0,0);
  opacity: .6;
  pointer-events:none;
}

.fineprint{
  margin: 12px 0 0;
  color: rgba(168,179,211,.62);
  font-size: 12px;
  line-height: 1.35;
}

.footer{
  width: min(520px, 100%);
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color: rgba(168,179,211,.62);
  font-size: 12px;
}
.footer__left, .footer__right{
  display:flex;
  align-items:center;
  gap:8px;
}
.badge{
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(35,49,82,.75);
  background: rgba(11,18,34,.55);
  color: rgba(232,238,252,.80);
}
.sep{ opacity:.7; }
.muted{ color: rgba(168,179,211,.62); }

@media (max-width: 420px){
  .card__header{ padding: 22px 18px 10px; }
  .form{ padding: 16px 18px 20px; }
  .row{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}
