:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --accent:#2563eb;
  --accent2:#4f8cff;
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --radius:18px;
  --danger:#b91c1c;
  --success:#16a34a;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font: 14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(79,140,255,.18), transparent 60%),
    radial-gradient(900px 400px at 85% 10%, rgba(37,99,235,.12), transparent 55%),
    var(--bg);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
}

a{ color:inherit; text-decoration:none; }

.wrap{ width:100%; max-width:980px; }

.card{
  background:var(--card);
  border:1px solid rgba(226,232,240,.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height:520px;
}
@media (max-width:900px){
  .grid{ grid-template-columns:1fr; min-height:auto; }
}

.left{
  padding:28px;
  border-right:1px solid rgba(226,232,240,.8);
  background: radial-gradient(600px 220px at 20% 0%, rgba(79,140,255,.18), transparent 60%), #fff;
}
@media (max-width:900px){
  .left{ border-right:none; border-bottom:1px solid rgba(226,232,240,.8); }
}

.right{ padding:28px; }

.brand{ display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px; }
.logo{
  width:36px; height:36px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

h1{
  margin:18px 0 10px;
  font-size:28px;
  line-height:1.15;
  letter-spacing:-.2px;
}

.lead{ color:var(--muted); margin:0 0 16px; }

.back{
  display:inline-flex; gap:8px; align-items:center;
  color:#1d4ed8; font-weight:800; font-size:12px;
  margin-top:14px;
}

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

.row{ display:grid; grid-template-columns:1fr; gap:10px; margin:0 0 10px; }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:520px){
  .row2{ grid-template-columns:1fr; }
}

label{ display:block; font-size:12px; font-weight:800; color:#334155; margin:0 0 6px; }
input{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 12px;
  font:inherit;
  outline:none;
  background:#fff;
}
input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.hint{ color:var(--muted); font-size:12px; margin-top:6px; }

.btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:100%;
}
.btn:hover{ box-shadow:0 10px 20px rgba(15,23,42,.08); }

.btn-primary{
  border-color:transparent;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color:#fff;
  box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

.or{
  display:flex; align-items:center; gap:10px;
  margin:14px 0;
  color:var(--muted);
  font-size:12px;
}
.or:before,.or:after{
  content:"";
  height:1px;
  background:rgba(226,232,240,.95);
  flex:1;
}

.foot{
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.foot a{ color:#1d4ed8; font-weight:800; }

.note{
  margin-top:16px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(37,99,235,.16);
  background: rgba(37,99,235,.08);
  color:#1e40af;
  font-size:12px;
  font-weight:700;
}

.bul{ margin:14px 0 0; padding:0; list-style:none; display:grid; gap:10px; }
.bul li{ display:flex; gap:10px; color:#334155; }
.dot{
  width:28px; height:28px; border-radius:10px;
  border:1px solid rgba(37,99,235,.18);
  background:rgba(37,99,235,.08);
  display:flex; align-items:center; justify-content:center;
  flex:0 0 28px;
}

hr.sep{
  border:0;
  border-top:1px solid rgba(226,232,240,.9);
  margin:12px 0;
}

/* pages like terms/privacy */
.doc{
  max-width:780px;
  margin:0 auto;
}
.doc h2{ margin:16px 0 8px; font-size:18px; }
.doc p, .doc li{ color:#334155; }
.doc ul{ margin:8px 0 0; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:800; font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(226,232,240,.95);
  background:#fff;
}


/* Topbar for auth pages */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  margin:0 0 14px;
  border-radius:16px;
  border:1px solid rgba(226,232,240,.95);
  background:rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.topbar__brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
}
.topbar__logo{
  width:30px;
  height:30px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 10px 18px rgba(37,99,235,.22);
}

.topbar__nav{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
}

.topbar__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  color:#334155;
  transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}
.topbar__link:hover{
  background: rgba(37,99,235,.08);
  color:#1e40af;
}
.topbar__link.is-active{
  background: rgba(37,99,235,.12);
  color:#1e40af;
  box-shadow: 0 10px 18px rgba(37,99,235,.12);
}

@media (max-width:520px){
  .topbar{ flex-direction:column; align-items:flex-start; }
  .topbar__nav{ width:100%; justify-content:space-between; }
  .topbar__link{ flex:1; }
}
