/* ── Override: remove index topbar spacing on auth pages ── */
.client-auth-page .header {
  display: none;
}

.client-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  background: var(--bg-app);
}

.client-auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-p);
}

.client-auth__header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.client-auth__header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.client-auth__header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.client-auth__error {
  background: var(--danger-pale);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.client-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.client-auth__form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.client-auth__form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.client-auth__form .btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.client-auth__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-auth__footer p {
  font-size: 12.5px;
}

.client-auth__footer a {
  color: var(--main-color);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
}

.client-auth__footer a:hover {
  color: var(--main-color-hover);
  text-decoration: underline;
}

.client-auth__footer .separator {
  color: var(--border-medium);
}

/* ── Logo mark ────────────────────────────────────────────── */
.client-auth__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 16px;
}

.client-auth__logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

/* ── Google/social button ─────────────────────────────────── */
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  text-decoration: none;
  margin-bottom: 12px;
}

.auth-social-btn:hover {
  background: var(--surface);
  border-color: var(--border-medium);
  color: var(--ink);
}

/* ── Divider ──────────────────────────────────────────────── */
.client-auth__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 16px;
}

.client-auth__divider hr {
  flex: 1;
  border: none;
  height: 1px;
  background: var(--border-light);
}

/* ── Label row with link ──────────────────────────────────── */
.client-auth__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.client-auth__label-row label {
  margin-bottom: 0;
}

.client-auth__label-row a {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* ── Pro link ─────────────────────────────────────────────── */
.client-auth__pro-link {
  font-size: 12.5px;
}

/* ── Terms checkbox row ───────────────────────────────────────── */
.client-auth__terms-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin-top: 0.25rem;
}

.client-auth__terms-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.client-auth__terms-text a {
  color: var(--main-color);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
}

.client-auth__terms-text a:hover {
  text-decoration: underline;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.btn--ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--border-medium);
}
