:root{
  --bg0:#f6f8fc;
  --bg1:#eef2ff;
  --stroke:#0b12201a;
  --stroke2:#0b122029;
  --text:#0b1220;
  --muted:#4b5565;
  --muted2:#6b7280;

  --accent:#3b82f6;
  --accent2:#7c3aed;

  --shadow: 0 18px 55px rgba(15, 23, 42, .12);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 650px at 15% 10%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(700px 550px at 85% 18%, rgba(124,58,237,.14), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  overflow-x:hidden;
}

/* subtle grid */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(to right, rgba(15,23,42,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(650px 520px at 50% 35%, #000 45%, transparent 78%);
  opacity:.55;
  pointer-events:none;
}

.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 16px;
  position:relative;
}

.wrap{
  width: min(980px, 100%);
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.panel{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}

.panel::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(650px 260px at 18% 0%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(650px 260px at 82% 0%, rgba(124,58,237,.12), transparent 60%);
  pointer-events:none;
  opacity:.85;
}

.hero{
  padding: 28px 28px 22px 28px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 420px;
  isolation:isolate;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.logo{
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display:grid;
  place-items:center;
  box-shadow: 0 12px 26px rgba(59,130,246,.18);
  border: 1px solid rgba(255,255,255,.7);
}

.logo svg{ width: 22px; height: 22px; fill: white; opacity:.95; }

.brand h1{
  font-size: 18px;
  margin:0;
  letter-spacing:.2px;
  font-weight: 800;
}

.brand p{
  margin: 2px 0 0 0;
  font-size: 13px;
  color: var(--muted2);
}

.headline{ margin-top: 18px; }

.headline h2{
  margin:0;
  font-size: 28px;
  letter-spacing: .2px;
  line-height: 1.15;
  font-weight: 900;
}

.headline p{
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 54ch;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.55);
  color: var(--muted);
  font-size: 12px;
  display:flex;
  align-items:center;
  gap: 8px;
  user-select:none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dot{
  width: 8px; height: 8px;
  border-radius: 99px;
  background: rgba(15,23,42,.25);
  box-shadow: 0 0 0 3px rgba(15,23,42,.06);
}

.footerNote{
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted2);
}

/* AUTH */
.auth{
  padding: 22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  isolation:isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
}

.authHeader{ margin-bottom: 14px; }

.authHeader h3{
  margin:0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing:.2px;
}

.authHeader p{
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
}

form{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 8px;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.input{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.7);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.input:focus-within{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
  background: rgba(255,255,255,.95);
}

.input svg{
  width: 18px; height: 18px;
  opacity:.7;
  flex: 0 0 auto;
  color: rgba(15,23,42,.7);
}

input{
  width:100%;
  border:0;
  outline:none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  letter-spacing:.2px;
}

input::placeholder{ color: rgba(107,114,128,.75); }

.pwRow{
  display:flex;
  gap: 10px;
  align-items:center;
  width:100%;
}

.inputGrow{ flex: 1; }

.iconBtn{
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.6);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 10px;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.iconBtn:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.18);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.iconBtn svg{
  width:18px; height:18px;
  opacity:.85;
  color: rgba(15,23,42,.75);
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 2px;
}

.checkbox{
  display:flex;
  align-items:center;
  gap: 10px;
  user-select:none;
  cursor:pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.checkbox input{
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor:pointer;
}

.miniLink{
  font-size: 12px;
  color: var(--muted);
  text-decoration:none;
  border-bottom: 1px dashed rgba(75,85,101,.35);
  padding-bottom:2px;
  font-weight: 600;
}

.miniLink:hover{
  color: var(--text);
  border-bottom-color: rgba(15,23,42,.45);
}

.btn{
  margin-top: 4px;
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(124,58,237,.92));
  color: white;
  font-size: 14px;
  font-weight: 900;
  letter-spacing:.2px;
  cursor:pointer;
  box-shadow: 0 14px 28px rgba(59,130,246,.16);
  transition: transform .08s ease;
}

.btn:active{ transform: translateY(1px); }

.status{
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted2);
  min-height: 18px;
}

/* responsive */
@media (max-width: 860px){
  .wrap{ grid-template-columns: 1fr; }
  .hero{ min-height: unset; padding: 22px; }
  .headline h2{ font-size: 24px; }
  .auth{ padding: 20px; }
}

@media (max-width: 420px){
  .page{ padding: 18px 12px; }
  .logo{ width: 40px; height: 40px; border-radius: 13px; }
  .headline h2{ font-size: 22px; }
  .chip{ padding: 9px 11px; }
  .input{ padding: 11px 11px; }
  .btn{ padding: 11px 13px; }
}
