/* ── Topbar: help link (login page only) ── */
.topbar-help {
  font-size: 12px;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
}
.topbar-help:hover { background: rgba(255,255,255,.1); color: var(--slate-200); }

/* ── Page layout ── */
.page {
  min-height: 100vh;
  display: flex;
  padding-top: var(--topbar-h);
}

/* ── Left panel ── */
.left-panel {
  width: 45%;
  background: linear-gradient(145deg, var(--navy) 0%, #2D3F56 55%, #1a365d 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.left-panel::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37,99,235,.22) 0%, transparent 68%);
  pointer-events: none;
}

.left-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 20%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(139,92,246,.14) 0%, transparent 68%);
  pointer-events: none;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,.22);
  border: 1px solid rgba(37,99,235,.38);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 600;
  color: #93C5FD;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 22px;
  width: fit-content;
  position: relative; z-index: 1;
}

.panel-heading {
  font-family: var(--font-serif);
  font-size: 38px;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.panel-heading em { font-style: italic; color: #93C5FD; }

.panel-sub {
  font-size: 14px;
  color: var(--slate-300);
  line-height: 1.75;
  max-width: none;
  margin-bottom: 40px;
  position: relative; z-index: 1;
}

.feature-list { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.fi-blue   { background: rgba(37,99,235,.25); }
.fi-purple { background: rgba(139,92,246,.22); }
.fi-teal   { background: rgba(14,165,233,.22); }
.fi-green  { background: rgba(16,185,129,.22); }
.feature-title { font-size: 13px; font-weight: 600; color: var(--slate-100); line-height: 1.3; }
.feature-desc  { font-size: 12px; color: var(--slate-400); line-height: 1.5; }

.panel-stats {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative; z-index: 1;
}
.pstat-value { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: white; line-height: 1; }
.pstat-label { font-size: 11px; color: var(--slate-400); margin-top: 3px; letter-spacing: .04em; }

/* ── Right panel / login form ── */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--slate-50);
}

.login-card { width: 100%; max-width: 420px; }
.login-greeting { margin-bottom: 32px; }

.login-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.login-eyebrow::before {
  content: '';
  width: 3px; height: 14px;
  background: var(--blue);
  border-radius: 2px;
  display: block;
}

.login-heading { font-family: var(--font-serif); font-size: 30px; color: var(--navy); line-height: 1.2; margin-bottom: 6px; }
.login-sub { font-size: 13.5px; color: var(--slate-500); line-height: 1.6; }

/* SSO button */
.sso-btn {
  width: 100%; height: 44px;
  background: white;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--navy);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  text-decoration: none;
}
.sso-btn:hover { border-color: var(--slate-300); background: var(--slate-50); box-shadow: var(--shadow-md); }
.sso-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Divider */
.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--slate-200); }
.divider-text { font-size: 11.5px; font-weight: 500; color: var(--slate-400); letter-spacing: .05em; white-space: nowrap; text-transform: uppercase; }

/* Override form-input padding */
.form-input { padding: 0 16px 0 40px; }
#password { padding-right: 44px; }

/* Row: remember + forgot */
.form-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--slate-600); user-select: none; }
.checkbox-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); border-radius: 3px; cursor: pointer; flex-shrink: 0; }
.forgot-link { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; transition: color .15s; }
.forgot-link:hover { color: var(--blue-light); text-decoration: underline; }

/* Submit button */
.btn-submit {
  width: 100%; height: 46px;
  background: var(--blue); color: white; border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(37,99,235,.4);
  letter-spacing: .02em; margin-bottom: 20px;
}
.btn-submit:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,.45); }
.btn-submit:active { transform: translateY(0); }
.btn-submit.loading { opacity: .8; pointer-events: none; }

/* Footer */
.login-footer { text-align: center; font-size: 12px; color: var(--slate-400); line-height: 1.6; }
.login-footer a { color: var(--slate-600); text-decoration: none; font-weight: 500; }
.login-footer a:hover { color: var(--blue); }
.footer-divider { margin: 0 6px; color: var(--slate-300); }
.bottom-copy { margin-top: 32px; text-align: center; font-size: 11px; color: var(--slate-400); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .left-panel { display: none; }
  .right-panel { padding: 36px 24px; }
}
@media (max-width: 480px) {
  .right-panel { padding: 28px 18px; }
}