/* ── Auth pages (login + register) ───────────────────── */

body.auth-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Main area ───────────────────────────────────────── */

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 12vh, 120px) clamp(16px, 4vw, 40px) clamp(40px, 6vh, 64px);
}

/* ── Card ────────────────────────────────────────────── */

.auth-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Brand mark in card ──────────────────────────────── */

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

/* ── Heading block ───────────────────────────────────── */

.auth-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-heading .eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.auth-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.auth-sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--soft);
}

/* ── Form ────────────────────────────────────────────── */

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  background: var(--charcoal-2);
  border: 1px solid rgba(249, 243, 236, 0.14);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
  outline: none;
}

.auth-field input::placeholder {
  color: var(--soft);
}

.auth-field input:focus {
  border-color: rgba(216, 160, 142, 0.5);
  box-shadow: 0 0 0 3px rgba(216, 160, 142, 0.1);
}

.auth-field input:invalid:not(:placeholder-shown) {
  border-color: rgba(184, 109, 78, 0.6);
}

/* ── Forgot password ─────────────────────────────────── */

.auth-forgot {
  display: flex;
  justify-content: flex-end;
}

.auth-forgot a {
  font-size: 0.82rem;
  color: var(--soft);
  transition: color 180ms ease;
}

.auth-forgot a:hover {
  color: var(--rose);
}

/* ── Submit button ───────────────────────────────────── */

.auth-submit {
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ── Switch link ─────────────────────────────────────── */

.auth-switch {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--soft);
}

.auth-switch a {
  color: var(--rose);
  font-weight: 600;
  margin-inline-start: 4px;
  transition: color 180ms ease;
}

.auth-switch a:hover {
  color: var(--ink);
}

/* ── Button primary (in case not in styles.css) ──────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 80ms ease;
  text-decoration: none;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--rose);
  color: var(--charcoal);
}

.button-primary:hover {
  background: var(--ink);
}

/* ── Google button ───────────────────────────────────── */

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

/* ── Divider ("or") ──────────────────────────────────── */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(249, 243, 236, 0.12);
}

/* ── Inline feedback messages ────────────────────────── */

.auth-error {
  margin: 0;
  font-size: 0.85rem;
  color: #e57373;
}

.auth-success {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sage, #8fbc8f);
}

/* ── RTL ─────────────────────────────────────────────── */

[dir="rtl"] .auth-heading .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .auth-heading h1 {
  letter-spacing: 0;
}

[dir="rtl"] .auth-forgot {
  justify-content: flex-start;
}
