/* ---------- Auth ---------- */
.auth-section {
  padding: 64px 0;
  display: flex;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: center;
}
.auth-title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}
.auth-sub {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  font-size: 15px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-alert {
  padding: 12px 14px;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.auth-submit {
  margin-top: 8px;
  width: 100%;
  text-align: center;
  border: none;
}
.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-alt a { color: var(--accent); }
.auth-alt a:hover { text-decoration: underline; }
.auth-alt-small { font-size: 13px; margin-top: 12px; }
.auth-alert-ok {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
}

/* ---------- Password toggle ---------- */
.pw-wrap { position: relative; }
.pw-wrap .pw-input { padding-right: 42px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.pw-toggle:hover { color: var(--text); background: var(--bg-subtle); }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .icon-eye-off { display: none; }
.pw-wrap.is-visible .pw-toggle .icon-eye { display: none; }
.pw-wrap.is-visible .pw-toggle .icon-eye-off { display: block; }
