/* =========================
   Auth Pages — Overrides
   ========================= */

.auth-header {
  background: transparent;
  border-bottom: none;
  max-width: 1180px;
  margin: 16px auto 0;
  min-height: auto;
  padding: 0 16px;
}

.auth-header nav a {
  color: var(--ink2);
}

.auth-header nav a:hover {
  color: var(--ink);
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(26, 58, 92, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.brand-text {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body {
  min-height: 100vh;
}

main {
  max-width: 480px;
  margin: 80px auto 0;
  padding: 0 16px;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-card);
  margin: 0;
}

.auth-card h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px !important;
}

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

.auth-form .form-field {
  margin-bottom: 0;
  gap: 6px;
}

.auth-form .form-field > :is(input, select, textarea) {
  margin-bottom: 0;
}

.auth-form :is(input, select) {
  min-height: 40px;
}

.auth-form textarea {
  min-height: 70px;
}

.auth-form label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink2);
}

.auth-helper {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink2);
}

.auth-secondary-btn {
  width: 100%;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.4;
}

.auth-checkbox input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.show-password-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-bottom: 4px;
}

.show-password-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.auth-submit {
  width: 100%;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.auth-error {
  margin-top: 16px;
  font-size: 13px;
  color: var(--red);
  line-height: 1.4;
}

.auth-error.is-success {
  color: #1a7a4a;
}

.auth-error[hidden] {
  display: none;
}

.forgot-password,
.auth-switch {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink2);
}

.forgot-password + p,
.auth-form + p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink2);
}

.forgot-password a,
.auth-switch a,
.forgot-password + p a,
.auth-form + p a {
  color: var(--accent2);
}

footer {
  margin-top: 40px;
}
