:root{
  --bg:#070a12;
  --card: rgba(20, 26, 44, .55);
  --stroke: rgba(120, 255, 233, .22);
  --text:#e9f3ff;
  --muted:#9fb2cc;
  --aqua:#3fffd8;
  --blue:#49a6ff;
  --shadow: 0 30px 80px rgba(0,0,0,.55);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: var(--bg);
  overflow-x:hidden;
}
.bg{position:fixed; inset:0; z-index:-1; overflow:hidden}
.grid{
  position:absolute; inset:-20%;
  background:
    linear-gradient(to right, rgba(73,166,255,.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63,255,216,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotate(-10deg);
  filter: blur(.2px);
  animation: drift 10s linear infinite;
  opacity:.55;
}
@keyframes drift{
  0%{transform:translate3d(0,0,0) rotate(-10deg)}
  100%{transform:translate3d(-60px, -60px, 0) rotate(-10deg)}
}
.orb{
  position:absolute; width:520px; height:520px; border-radius:50%;
  filter: blur(60px);
  opacity:.55;
}
.orb1{background:rgba(73,166,255,.6); top:-180px; left:-200px; animation: float1 8s ease-in-out infinite}
.orb2{background:rgba(63,255,216,.55); bottom:-220px; right:-220px; animation: float2 10s ease-in-out infinite}
.orb3{background:rgba(140,120,255,.35); top:35%; left:55%; width:420px; height:420px; animation: float3 11s ease-in-out infinite}
@keyframes float1{50%{transform:translate(40px, 30px)}}
@keyframes float2{50%{transform:translate(-40px, -30px)}}
@keyframes float3{50%{transform:translate(-30px, 30px)}}
.noise{
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
  opacity:.20;
}
.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:6px;
  animation: pop .7s ease-out both;
}
@keyframes pop{from{transform:translateY(14px);opacity:0}to{transform:translateY(0);opacity:1}}
.logo{
  width:48px; height:48px;
  border-radius:14px;
  display:grid; place-items:center;
  font-weight:800;
  color:#021018;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  box-shadow: 0 10px 30px rgba(63,255,216,.18);
}
.brandText h1{margin:0; font-size:22px; letter-spacing:.4px}
.brandText p{margin:2px 0 0; color:var(--muted); font-size:12px}
.card{
  width:min(430px, 100%);
  padding:16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  position:relative;
  overflow:hidden;
  animation: slideUp .7s ease-out both;
}
@keyframes slideUp{from{transform:translateY(18px);opacity:0}to{transform:translateY(0);opacity:1}}
.card::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 200px at 30% 0%, rgba(63,255,216,.18), transparent 50%),
              radial-gradient(500px 220px at 80% 20%, rgba(73,166,255,.18), transparent 55%);
  pointer-events:none;
}
.tabs{
  position:relative;
  display:flex;
  gap:8px;
  padding:6px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  margin-bottom:14px;
  overflow:hidden;
}
.tab{
  flex:1;
  padding:10px 12px;
  border:0;
  border-radius:14px;
  background: transparent;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.3px;
}
.tab.active{color:var(--text)}
.tabGlow{
  position:absolute;
  top:6px; left:6px;
  width:calc(50% - 10px);
  height:calc(100% - 12px);
  border-radius:14px;
  background: linear-gradient(135deg, rgba(63,255,216,.28), rgba(73,166,255,.20));
  border:1px solid var(--stroke);
  box-shadow: 0 0 40px rgba(63,255,216,.18);
  transition: transform .25s ease;
}
.panel{display:none}
.panel.show{display:block; animation: fade .25s ease}
@keyframes fade{from{opacity:0; transform:translateY(6px)}to{opacity:1; transform:translateY(0)}}
.field{margin-bottom:12px}
label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px 2px}
input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(5, 8, 16, .35);
  color:var(--text);
  outline:none;
}
input:focus{
  border-color: rgba(63,255,216,.35);
  box-shadow: 0 0 0 4px rgba(63,255,216,.10);
}
.passRow{display:flex; gap:8px; align-items:center}
.eye{
  width:46px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(5, 8, 16, .35);
  color:var(--text);
}
.btn{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color:var(--text);
  font-weight:800;
  letter-spacing:.5px;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(63,255,216,.95), rgba(73,166,255,.90));
  color:#021018;
  border: 1px solid rgba(255,255,255,.18);
}
.btn:active{transform: translateY(1px)}
.hint{margin-top:10px; min-height:18px}
.msg{font-size:12px; color: var(--muted)}
.msg.ok{color: rgba(63,255,216,.95)}
.msg.err{color: rgba(255,120,120,.95)}
.footer{
  margin-top:12px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
  }
