/* ── AUTH PAGE ──────────────────────────────────────────── */

.auth-body { background: var(--cream); min-height: 100vh; }

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

/* ── LEFT PANEL ───────────────────────────── */
.auth-panel {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 40px 52px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.auth-logo .logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

/* ── TABS ─────────────────────────────────── */
.auth-tabs {
  display: flex;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ── FORMS ────────────────────────────────── */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.auth-form.active { display: flex; }

.auth-form__header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.auth-form__header p {
  color: var(--ink-soft);
  font-size: 14px;
}

.form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-link {
  font-size: 12px;
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

.form-link:hover { text-decoration: underline; }

.input-password {
  position: relative;
}

.input-password .form-input { padding-right: 42px; }

.pass-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.pass-toggle:hover { opacity: 1; }

.pass-strength {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
}

.pass-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

.form-check { flex-direction: row; align-items: flex-start; }

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.check-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--amber);
  width: 15px; height: 15px;
  flex-shrink: 0;
}

.auth-submit { width: 100%; }

/* ── ROLE PICKER ──────────────────────────── */
.role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.role-card:hover { border-color: var(--amber); background: var(--amber-light); }

.role-card.active {
  border-color: var(--amber);
  background: var(--amber-light);
  box-shadow: 0 0 0 3px rgba(232,136,10,0.12);
}

.role-emoji { font-size: 24px; margin-bottom: 4px; }
.role-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.role-desc  { font-size: 12px; color: var(--ink-soft); }

/* ── DIVIDER ──────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── SOCIALS ──────────────────────────────── */
.auth-socials { display: flex; flex-direction: column; gap: 8px; }

.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s;
}

.social-btn:hover {
  background: var(--cream);
  border-color: var(--ink-muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── RIGHT DECO PANEL ─────────────────────── */
.auth-deco {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 60px 48px;
}

.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
}

.deco-blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #e8880a, transparent);
  top: -100px; right: -100px;
  animation: blobDeco1 12s ease-in-out infinite alternate;
}

.deco-blob--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #1a7a5e, transparent);
  bottom: -80px; left: -80px;
  animation: blobDeco2 16s ease-in-out infinite alternate;
}

@keyframes blobDeco1 { 0% { transform: scale(1); } 100% { transform: scale(1.2) translate(-40px, 60px); } }
@keyframes blobDeco2 { 0% { transform: scale(1); } 100% { transform: scale(1.15) translate(30px,-40px); } }

.deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.deco-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.deco-quote {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.deco-quote p {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 20px;
}

.deco-quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deco-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(232,136,10,0.2);
  border: 1px solid rgba(232,136,10,0.4);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

.deco-author { font-weight: 600; font-size: 14px; color: rgba(255,255,255,0.9); }
.deco-role   { font-size: 12px; color: rgba(255,255,255,0.4); }

.deco-stats {
  display: flex;
  gap: 32px;
}

.ds { display: flex; flex-direction: column; gap: 4px; }

.ds__n {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

.ds__l {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-deco   { display: none; }
  .auth-panel  { padding: 32px 24px; }
}
