:root{
  --bg1:#0b0a1a;
  --bg2:#24104f;
  --card:#2a2356cc;
  --txt:#eef0ff;
  --muted:#a9a7c7;
  --accent1:#00e5ff;
  --accent2:#8a2be2;
  --accent3:#ff2bd6;
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--txt);
  background: radial-gradient(900px 500px at 20% 20%, #3b1a82 0%, transparent 60%),
              radial-gradient(800px 600px at 80% 30%, #112c87 0%, transparent 60%),
              linear-gradient(180deg, var(--bg2), var(--bg1));
  display:grid;
  place-items:center;
  padding:24px;
}

.neon-card{
  width:min(420px, 92vw);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  position:relative;
  padding:28px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  overflow:hidden;
}

.neon-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: conic-gradient(from 0deg,
    var(--accent1),
    var(--accent2),
    var(--accent3),
    var(--accent1)
  );
  border-radius: calc(var(--radius) + 2px);
  opacity:.95;
  animation: spin 2.2s linear infinite;
}

.neon-card::after{
  content:"";
  position:absolute;
  inset:2px;
  background: var(--card);
  border-radius: calc(var(--radius) - 2px);
}

.neon-card > *{ position:relative; z-index:1; }

.neon-card.glow{
  animation: glowPulse 1.25s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glowPulse{
  0%,100%{
    box-shadow:
      0 18px 60px rgba(0,0,0,.45),
      0 0 10px rgba(0,229,255,.25),
      0 0 18px rgba(138,43,226,.18);
  }
  50%{
    box-shadow:
      0 18px 60px rgba(0,0,0,.45),
      0 0 18px rgba(0,229,255,.55),
      0 0 30px rgba(255,43,214,.28);
  }
}

@media (prefers-reduced-motion: reduce){
  .neon-card::before, .neon-card.glow{ animation:none; }
}

.brand{ display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, #2df3ff, #6b5bff);
  display:grid; place-items:center;
  box-shadow: 0 0 18px rgba(0,229,255,.35);
}
.brand h1{ font-size:22px; margin:0; line-height:1.1; }
.brand p{ margin:2px 0 0; color:var(--muted); font-size:13px; }

.field{ margin-top:12px; }
.field label{ display:block; font-size:13px; color:var(--muted); margin:0 0 6px; }
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,10,25,.45);
  color:var(--txt);
  outline:none;
}
.input:focus{
  border-color: rgba(0,229,255,.55);
  box-shadow: 0 0 0 4px rgba(0,229,255,.10);
}

.btn{
  margin-top:16px;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  color:white;
  font-weight:700;
  background: linear-gradient(90deg, #05d9ff, #3f6bff);
  box-shadow: 0 10px 26px rgba(63,107,255,.25);
}

.msg{ margin-top:10px; font-size:13px; color:#ffd6ff; }
.hint{ margin-top:12px; font-size:12px; color:var(--muted); text-align:center; }
.hint code{ color:#d7f7ff; }
