/* ── Auth Pages (login.html & register.html) ────────────────── */

.auth-body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: 0;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Brand Block ─────────────────────────────────────────────── */
.auth-brand {
  text-align: center;
}

.auth-app-name {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 4px;
}

.auth-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Card ────────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
}

.auth-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Form Hints ──────────────────────────────────────────────── */
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ── Remember Me ─────────────────────────────────────────────── */
.auth-remember {
  margin-bottom: 20px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.remember-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Submit Button ───────────────────────────────────────────── */
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Switch Link ─────────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ── Flash messages inside auth card ────────────────────────── */
.auth-card .flash {
  margin-bottom: 16px;
}

/* ── Forgot Password Link ─────────────────────────────────────── */
.auth-forgot-link {
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.auth-forgot-link:hover {color: var(--accent);}

/* ── Password Toggle ─────────────────────────────────────────── */
.password-wrap {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.password-toggle:hover { color: var(--text); }