/* Login, register, demo, captcha */
.auth-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.12), transparent 50%),
    #0b0e14;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

.auth-brand {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 32px;
}

.auth-logo span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0f172a;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.auth-brand h1 {
  font-size: 36px;
  margin: 0 0 12px;
}

.auth-brand > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-highlights li {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-highlights li::before {
  content: '✓ ';
  color: #4ade80;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 26, 36, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.auth-card-wide { max-width: 560px; }

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.auth-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-form label {
  display: block;
  margin-bottom: 14px;
}

.auth-form label span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.auth-span-2 { grid-column: span 2; }

.auth-remember,
.auth-terms {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-remember input,
.auth-terms input { width: auto; }

.auth-btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.auth-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-btn-ghost {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  margin-top: 8px;
}

.auth-error {
  color: var(--accent-red);
  font-size: 13px;
  margin: 8px 0;
}

.auth-demo-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.auth-demo-cred {
  color: var(--text-muted);
  margin: 8px 0 12px;
}

.auth-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer-link a { color: #7dd3fc; }

.auth-alt {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
}

.auth-alt a { color: var(--text-muted); }

.captcha-wrap {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.captcha-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.captcha-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.captcha-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.auth-demo-page {
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.auth-demo-hero h1 { font-size: 32px; margin-bottom: 8px; }

.auth-demo-creds-large {
  text-align: left;
  margin: 32px 0;
  padding: 24px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.auth-demo-creds-large div {
  margin-bottom: 14px;
}

.auth-demo-creds-large span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.auth-demo-creds-large code {
  font-size: 16px;
  color: #7dd3fc;
}
