/* ═══════════════════════════════════════════════════════════════════
   iParde — Auth pages (login + register)
   ═══════════════════════════════════════════════════════════════════ */

body.auth-page {
  min-height: 100svh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 48px rgba(0,0,0,.4);
  animation: fade-up 0.5s ease both;
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; border-radius: var(--radius-lg); }
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.auth-logo-wrap img { height: 42px; width: auto; }

.auth-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: 32px;
}

/* ── Google button ────────────────────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #1f1f1f;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 0;
}
.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,255,255,.2);
}
.google-svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Divider ──────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Form fields ──────────────────────────────────────────────────── */
.auth-form .form-group { margin-bottom: 18px; }

.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 7px;
}

.auth-form input {
  width: 100%;
  background: rgba(31,13,64,.6);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.auth-form input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(74,14,143,.22);
}
.auth-form input.error {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232,54,93,.18);
}
.auth-form input::placeholder { color: rgba(154,135,192,.5); }

/* ── Password toggle ──────────────────────────────────────────────── */
.input-wrap { position: relative; }
.pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 1rem;
  transition: color var(--transition);
}
.pwd-toggle:hover { color: var(--white); }

/* ── Submit button ────────────────────────────────────────────────── */
.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  font-size: 1rem;
}

/* ── Alerts ───────────────────────────────────────────────────────── */
.auth-alert {
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none;
}
.auth-alert.show { display: block; }
.auth-alert.error   { background: rgba(232,54,93,.12); border: 1px solid rgba(232,54,93,.35); color: #ff8fa3; }
.auth-alert.success { background: rgba(13,115,119,.12); border: 1px solid rgba(13,115,119,.35); color: var(--teal-light); }

/* ── Footer links ─────────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-footer a       { color: var(--gold); transition: color var(--transition); }
.auth-footer a:hover { color: var(--gold-light); text-decoration: underline; }

/* ── Terms note ───────────────────────────────────────────────────── */
.auth-terms {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 18px;
  line-height: 1.6;
}
.auth-terms a { color: var(--text-muted); text-decoration: underline; }

/* ── Minimal nav for auth pages ───────────────────────────────────── */
.auth-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}
.auth-nav img { height: 36px; width: auto; }
