:root{
  --bg0:#070913;
  --bg1:#0a1024;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --glow1:#4fa3ff;
  --glow2:#a35cff;
  --ok:#25d67a;
  --err:#ff4d6d;
  --radius: 22px;
  --shadow: 0 40px 120px rgba(0,0,0,.65);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(79,163,255,.22), transparent 60%),
    radial-gradient(900px 600px at 80% 90%, rgba(163,92,255,.18), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow:hidden;
}

.grid{
  position:fixed;
  inset:-2px;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity:.10;
  transform: perspective(900px) rotateX(58deg) translateY(-180px);
  filter: blur(.2px);
  pointer-events:none;
}

.orb{
  position:fixed;
  width:680px;height:680px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(79,163,255,.95), rgba(163,92,255,.55), transparent 60%);
  filter: blur(170px);
  opacity:.33;
  animation: float 12s ease-in-out infinite;
  pointer-events:none;
}
.orb.two{
  width:740px;height:740px;
  right:-220px; bottom:-260px;
  opacity:.28;
  animation-delay: 5.5s;
}

@keyframes float{
  0%,100%{ transform: translate3d(0,0,0) }
  50%{ transform: translate3d(0,-40px,0) }
}

.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px 14px;
  position:relative;
  z-index:1;
}

.card{
  width: min(460px, 100%);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  padding: 26px;
  animation: enter .75s cubic-bezier(.2,.9,.2,1);
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 240px at 10% 0%, rgba(79,163,255,.22), transparent 60%),
              radial-gradient(600px 240px at 90% 100%, rgba(163,92,255,.18), transparent 60%);
  opacity:.9;
  pointer-events:none;
}

@keyframes enter{
  from{opacity:0; transform: translateY(26px) scale(.98)}
  to{opacity:1; transform:none}
}

.header{
  position:relative;
  z-index:1;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 18px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.logo{
  width:46px;height:46px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(79,163,255,1), rgba(163,92,255,1));
  box-shadow: 0 16px 40px rgba(79,163,255,.22);
  position:relative;
}
.logo::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:14px;
  background: rgba(10,16,36,.35);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}

h1{
  margin:0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing:.2px;
  line-height:1.1;
}
.sub{
  margin-top:4px;
  font-size:13px;
  color: var(--muted);
}

.badge{
  font-size:12px;
  color: rgba(255,255,255,.85);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.form{
  position:relative;
  z-index:1;
  margin-top: 10px;
}

.field{
  margin-top: 12px;
}
.label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 7px;
}
.label span{
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.hint{
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.input{
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 12px 12px;
  transition: .25s ease;
}
.input:focus-within{
  background: rgba(255,255,255,.10);
  border-color: rgba(79,163,255,.35);
  box-shadow: 0 0 0 3px rgba(79,163,255,.16);
}

.icon{
  width:18px;height:18px;
  opacity:.85;
  flex:0 0 auto;
}

.input input{
  width:100%;
  border:0;
  outline:none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  padding: 6px 4px;
}
.input input::placeholder{ color: rgba(255,255,255,.45) }

.toggle{
  border:0;
  background: transparent;
  color: rgba(255,255,255,.75);
  cursor:pointer;
  padding: 6px 8px;
  border-radius: 12px;
  transition: .2s ease;
  flex:0 0 auto;
}
.toggle:hover{ background: rgba(255,255,255,.06); color:#fff }

.row{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.recap{
  display:flex;
  justify-content:center;
  margin-top: 16px;
}

.btn{
  width:100%;
  margin-top: 16px;
  padding: 14px 16px;
  border:0;
  border-radius: 16px;
  color:#fff;
  font-weight: 800;
  font-size: 15px;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(79,163,255,1), rgba(106,92,255,1));
  box-shadow: 0 18px 45px rgba(79,163,255,.18);
  position:relative;
  overflow:hidden;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active{ transform: translateY(1px) }
.btn::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:50%;
  height:200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(16deg);
  transition: .7s ease;
}
.btn:hover::after{ left:130% }

.btn.loading{
  opacity:.85;
  pointer-events:none;
}
.btn .spin{
  display:none;
  width:16px;height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,.95);
  animation: rot .7s linear infinite;
}
@keyframes rot{ to{ transform: rotate(360deg) } }
.btn.loading .spin{ display:inline-block }
.btn.loading .txt{ opacity:.95 }

.footer{
  position:relative;
  z-index:1;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer a{
  color: rgba(156,198,255,.92);
  text-decoration:none;
  font-size: 13px;
  transition:.2s ease;
}
.footer a:hover{ color:#fff }

.note{
  font-size:12px;
  color: rgba(255,255,255,.55);
}

@media (max-width: 420px){
  .card{ padding: 20px }
  .badge{ display:none }
  .logo{ width:42px;height:42px;border-radius:14px }
  .logo::after{ border-radius:12px }
}