/* ============================================================
   BRIDGE — Auth (login / signup)
   ============================================================ */
.auth-body { min-height: 100vh; overflow: hidden; }

.auth-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 540px;
}

/* LEFT — context column */
.auth-left {
  position: relative;
  padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), transparent);
  border-right: 1px solid var(--border-2);
  overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
}
.al-brand { display: inline-flex; align-items: center; }
.al-brand img { height: 36px; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.2)); }

.al-headline {
  margin-top: auto;
  max-width: 560px;
}
.al-proto {
  display: inline-block;
  font-family: var(--f-m); font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 18px;
}
.al-proto::after { content: '▌'; margin-left: 4px; animation: blink .8s step-end infinite; }
.al-headline h1 {
  font-family: var(--f-h); font-weight: 800;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.05;
  color: var(--white);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  text-wrap: balance;
}
.al-headline h1 em { font-style: italic; color: var(--cyan); }
.al-headline p {
  color: var(--muted2);
  font-size: 16px; line-height: 1.6;
  max-width: 480px;
}

.al-foot {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.al-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 480px;
}
.al-stat {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 3px;
}
.al-stat span {
  display: block;
  font-family: var(--f-m); font-size: 10px;
  color: var(--muted); letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.al-stat b {
  font-family: var(--f-h); font-weight: 700;
  font-size: 20px; color: var(--white);
  letter-spacing: -0.5px;
}

.al-mini-demo {
  padding: 18px 20px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border-3);
  border-radius: 3px;
  max-width: 480px;
}
.al-mini-demo .proto-label { margin-bottom: 10px; }
.al-mini-demo .proto-label::after { display: none; }
.al-mini-quote {
  font-family: var(--f-m); font-size: 13px;
  color: var(--text); line-height: 1.6;
  margin-bottom: 10px;
}
.al-mini-quote em { color: var(--cyan); font-style: italic; }
.al-mini-models {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-m); font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 1px;
}
.al-mini-models .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--green);
}
.al-mini-models b { color: var(--cyan); margin-left: 4px; font-weight: 500; }

/* RIGHT — form column */
.auth-right {
  background: rgba(2, 4, 10, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
}

.ar-header { margin-bottom: 28px; }
.ar-tag {
  display: inline-block;
  font-family: var(--f-m); font-size: 10px;
  letter-spacing: 2px;
  color: var(--cyan);
  padding: 4px 10px;
  border: 1px solid var(--border-3);
  background: rgba(0, 229, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 18px;
}
.ar-h {
  font-family: var(--f-h); font-weight: 700;
  font-size: 32px;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.ar-sub { color: var(--muted2); font-size: 14.5px; line-height: 1.55; }
.ar-sub a { color: var(--cyan); border-bottom: 1px solid var(--border-3); padding-bottom: 1px; }

/* OAUTH */
.oauth-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 20px;
}
.oauth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  font-family: var(--f-m); font-size: 12px;
  letter-spacing: 1px;
  color: var(--text);
  transition: all .2s;
}
.oauth-btn:hover { border-color: var(--cyan); background: rgba(0, 229, 255, 0.06); color: var(--cyan); }

/* DIVIDER */
.or-divider {
  display: flex; align-items: center;
  margin: 20px 0;
  gap: 12px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}
.or-divider span {
  font-family: var(--f-m); font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

/* FORM */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.af-row { display: flex; flex-direction: column; gap: 6px; }
.af-row span {
  font-family: var(--f-m); font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted2);
}
.af-row input {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  padding: 13px 16px;
  font-family: var(--f-b); font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: all .2s;
}
.af-row input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.08); }
.af-row input::placeholder { color: var(--muted); }
.af-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.af-row.split label { display: flex; flex-direction: column; gap: 6px; }

.af-options {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-m); font-size: 12px;
  color: var(--muted2);
  margin: 4px 0;
}
.af-check {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: crosshair;
}
.af-check input {
  appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--border-3);
  border-radius: 2px;
  background: rgba(0,0,0,0.4);
  cursor: crosshair;
  position: relative;
}
.af-check input:checked {
  background: var(--cyan);
  border-color: var(--cyan);
}
.af-check input:checked::after {
  content: '✓';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
}
.af-link {
  color: var(--cyan);
  border-bottom: 1px solid var(--border-3);
  padding-bottom: 1px;
  font-size: 12px;
}

.af-submit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px;
  margin-top: 6px;
  font-family: var(--f-m); font-size: 12px; font-weight: 600;
  letter-spacing: 3px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 2px;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.3);
  transition: all .2s;
}
.af-submit:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0, 229, 255, 0.5); }
.af-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.af-submit span { transition: transform .2s; }
.af-submit:hover span { transform: translateX(4px); }

.af-meta {
  margin-top: 14px;
  text-align: center;
  font-family: var(--f-m); font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.af-meta a { color: var(--cyan); }

.af-fineprint {
  margin-top: 20px;
  font-family: var(--f-m); font-size: 10.5px;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: 0.3px;
  text-align: center;
}
.af-fineprint a { color: var(--muted2); border-bottom: 1px solid var(--border); }

/* PASSWORD STRENGTH (signup) */
.af-strength {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.afs-bar {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px;
  height: 3px;
}
.afs-bar i {
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  transition: background .2s;
}
.afs-bar i.on1 { background: var(--red); }
.afs-bar i.on2 { background: var(--amber); }
.afs-bar i.on3 { background: var(--green); }
.afs-bar i.on4 { background: var(--cyan); }
.afs-l {
  font-family: var(--f-m); font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.afs-l b { color: var(--text); font-weight: 500; }

/* responsive */
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-left { padding: 32px; }
  .auth-right { padding: 32px; }
  .al-foot { margin-top: 28px; }
  .al-mini-demo { display: none; }
}
@media (max-width: 720px) {
  .al-headline h1 { font-size: 32px; }
  .al-stats { grid-template-columns: 1fr; }
  .oauth-row { grid-template-columns: 1fr; }
}
