:root{
  --bg0:#070b14;
  --bg1:#0b1220;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.18);
  --text: #eaf1ff;
  --muted: rgba(234,241,255,.72);

  --primary1:#3b82f6;
  --primary2:#2563eb;

  --shadow: 0 26px 90px rgba(0,0,0,.55);
  --radius: 22px;
}

*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(34,197,94,.10), transparent 55%),
    radial-gradient(900px 600px at 55% 90%, rgba(168,85,247,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}

.auth-shell{
  width:100%;
  max-width:980px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 900px){
  .auth-shell{grid-template-columns:1fr}
}

.auth-left{
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding:22px;
  overflow:hidden;
  position:relative;
}
.auth-left:before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(59,130,246,.20), transparent 55%),
    radial-gradient(600px 300px at 80% 30%, rgba(34,197,94,.14), transparent 55%);
  pointer-events:none;
  opacity:.9;
}
.auth-left > *{position:relative}

.brand{
  display:flex; gap:12px; align-items:center;
}
.brand .logo{
  width:46px; height:46px; border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.brand .logo img{width:100%; height:100%; object-fit:cover}
.brand .meta{line-height:1.1}
.brand .meta .name{font-weight:900; letter-spacing:.2px}
.brand .meta .desc{margin-top:4px; color:var(--muted); font-size:12.5px}

.hero{
  margin-top:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  padding:16px;
}
.hero h1{margin:0; font-size:20px; letter-spacing:.2px}
.hero p{margin:8px 0 0; color:var(--muted); font-size:13.5px; line-height:1.45}
.pills{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.pill{
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(234,241,255,.85);
  font-weight:800;
}

.auth-card{
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  padding:22px;
}

.title{
  font-size:18px;
  font-weight:900;
  margin:0;
}
.sub{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.45;
}

.form{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
label{
  font-size:12px;
  color: rgba(234,241,255,.70);
  font-weight:800;
  margin-bottom:6px;
  display:block;
}
.input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
  transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
}
.input:focus{
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}

.alert{
  border-radius:14px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(234,241,255,.90);
  font-size:13px;
}
.alert.err{border-color: rgba(255,74,74,.35); background: rgba(255,74,74,.10)}
.alert.ok{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.10)}

.actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:4px;
}

.btn{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.20)}
.btn:active{transform: translateY(0)}

.btn.primary{
  background: linear-gradient(180deg, rgba(59,130,246,.28), rgba(37,99,235,.16));
  border-color: rgba(59,130,246,.42);
  box-shadow: 0 12px 40px rgba(59,130,246,.10);
}
.btn.ghost{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
  color: rgba(234,241,255,.90);
}

.footer{
  margin-top:14px;
  color: rgba(234,241,255,.55);
  font-size:12px;
  text-align:center;
}
.footer a{color: rgba(234,241,255,.70); text-decoration:none; font-weight:800}
.footer a:hover{text-decoration:underline}

/* Modal */
.bd{
  position:fixed; inset:0;
  display:none; align-items:center; justify-content:center;
  padding:24px;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(7px);
  z-index:9999;
}
.bd.open{display:flex}
.modal{
  width:100%; max-width:520px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  box-shadow: 0 30px 90px rgba(0,0,0,.60);
  overflow:hidden;
}
.modal-h{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
  font-weight:900;
}
.modal-x{
  width:38px; height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(234,241,255,.95);
  cursor:pointer;
  font-size:18px;
  display:flex; align-items:center; justify-content:center;
}
.modal-b{
  padding:14px 16px;
  color: rgba(234,241,255,.88);
  font-size:14px;
  line-height:1.5;
}
.modal-actions{
  padding:0 16px 16px;
}
