﻿/* ══════════════════════════════════════════════════
   TikAPI.dev — Auth pages · Obsidian split layout
   ══════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

/* ── Left branding panel ─────────────────────────── */
.auth-left {
  width: 40%;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(ellipse, rgba(124,58,237,.16) 0%, transparent 65%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.auth-brand {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative; z-index: 1;
  text-decoration: none;
}
.auth-headline {
  position: relative; z-index: 1;
  margin-top: auto;
  padding-top: 60px;
}
.auth-headline h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.auth-headline p {
  font-size: .9375rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 320px;
}
.auth-feats {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8375rem;
  color: var(--text-dim);
}
.auth-feat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

/* ── Right form panel ────────────────────────────── */
.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
}
.auth-right-top {
  position: absolute;
  top: 24px; right: 24px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
}
.auth-heading {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.035em;
}
.auth-subheading {
  color: var(--text-muted);
  font-size: .875rem;
  margin-bottom: 28px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-divider {
  text-align: center;
  margin-top: 20px;
  font-size: .875rem;
  color: var(--text-muted);
}
.auth-divider a { color: var(--cyan); font-weight: 600; transition: color .15s; }
.auth-divider a:hover { color: var(--text); }

/* ── Form error ──────────────────────────────────── */
.form-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.22);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: .875rem;
  padding: 10px 14px;
  display: none;
}
.form-error.show { display: block; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .auth-page { flex-direction: column; }
  .auth-left { display: none; }
  .auth-right { padding: 48px 24px; justify-content: flex-start; padding-top: 60px; }
}