:root{
  --ink:#0b0f1a;
  --muted:#58627a;
  --card: rgba(255,255,255,.75);
  --stroke: rgba(10,15,30,.10);
  --shadow: 0 30px 80px rgba(10,15,30,.14);
  --a1:#7C5CFF;
  --a2:#5BD6FF;
  --a3:#FF6BD6;
}

*{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(--ink);
  background: radial-gradient(1000px 500px at 20% 10%, rgba(91,214,255,.30), transparent 55%),
              radial-gradient(900px 520px at 85% 20%, rgba(124,92,255,.26), transparent 55%),
              radial-gradient(900px 520px at 75% 95%, rgba(255,107,214,.18), transparent 55%),
              linear-gradient(180deg, #f7fbff, #f6f0ff);
}

.auth-wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:24px;
}

.auth-card{
  width:min(520px, 100%);
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  position:relative;

  /* IMPORTANT: do NOT lock height */
  height: auto;
  max-height: none;
  overflow: visible;
}

.auth-header{
  padding:26px 26px 0;
}
.auth-title{
  margin:0 0 8px;
  font-size:28px;
  letter-spacing:-.02em;
}
.auth-sub{
  margin:0 0 18px;
  color: var(--muted);
}

.glow{
  position:absolute;
  inset:-40% -40% auto -40%;
  height:260px;
  background: linear-gradient(90deg, rgba(91,214,255,.45), rgba(124,92,255,.45), rgba(255,107,214,.35));
  filter: blur(40px);
  opacity:.65;
  pointer-events:none;
  border-radius: 999px;
}

.auth-body{
  padding: 18px 26px 26px;
  display:block; /* IMPORTANT */
}

.label{font-size:13px; color: var(--muted); margin: 14px 0 8px;}
.input{
  width:100%;
  height:46px;
  border-radius: 14px;
  border: 1px solid rgba(10,15,30,.12);
  background: rgba(255,255,255,.70);
  padding: 0 14px;
  font-size:14px;
  outline:none;
}
.input:focus{
  border-color: rgba(124,92,255,.45);
  box-shadow: 0 0 0 6px rgba(124,92,255,.12);
  background: rgba(255,255,255,.85);
}

.row{display:flex; gap:10px; margin-top:16px; flex-wrap:wrap;}
.btn{
  height:46px;
  border-radius:999px;
  padding:0 16px;
  border:1px solid rgba(10,15,30,.12);
  background: rgba(255,255,255,.75);
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color: rgba(20,25,35,.92);
  transition: transform .18s ease, filter .18s ease;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.02);}

.btn-primary{
  border: 1px solid rgba(124,92,255,.30);
  background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(91,214,255,.95), rgba(255,107,214,.90));
  color:#fff;
  flex:1;
}
.btn-ghost{flex:1;}

.alert{
  margin: 12px 26px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 82, 82, .10);
  border: 1px solid rgba(255, 82, 82, .25);
  color: rgba(160, 20, 20, .95);
  font-weight:600;
  font-size:13px;
}

.small{
  margin-top:14px;
  color: var(--muted);
  font-size:13px;
}
.small a{color: rgba(80,60,210,.95); font-weight:700; text-decoration:none;}
.small a:hover{text-decoration:underline;}
