/* ── Auth pages ──────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #f5f3ee;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 0.5px solid #e0dbd0;
  border-radius: 4px;
  padding: 40px 36px 36px;
  position: relative;
}

/* slim dark rule at card top */
.auth-card::before {
  content: '';
  display: block;
  height: 3px;
  background: #1a1612;
  position: absolute;
  top: 0; left: 0; right: 0;
  border-radius: 4px 4px 0 0;
}

/* brand mark */
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7f6e;
  text-align: center;
  margin: 0 0 10px;
}

.auth-card h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: #1a1612;
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.25;
}

.auth-card .muted {
  font-size: 13.5px;
  color: #8a7f6e;
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.5;
}

.auth-divider {
  height: 0.5px;
  background: #e8e3d8;
  margin: 0 0 24px;
}

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

/* field label sits above input */
.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-card label > span,
.auth-card label > .label-text {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a4035;
}

.auth-card .input {
  height: 42px;
  border: 0.5px solid #d8d1c4;
  border-radius: 3px;
  background: #faf9f7;
  font-size: 14px;
  color: #1a1612;
  padding: 0 12px;
  transition: border-color 0.15s;
}

.auth-card .input:focus {
  outline: none;
  border-color: #1a1612;
  background: #fff;
}

/* remember-me row */
.auth-card label.row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b6055;
}

.auth-forgot {
  font-size: 12px;
  color: #8a7f6e;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: -8px;
  display: block;
}

/* submit button */
.pill-btn.full {
  width: 100%;
  height: 44px;
  background: #1a1612;
  color: #f5f3ee;
  border: none;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.15s;
}

.pill-btn.full:hover { opacity: 0.85; }

.auth-footer {
  font-size: 13px;
  color: #8a7f6e;
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: #5c4f3a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* ── Auth page alerts ── */
.auth-alert {
  padding: 10px 14px;
  border-radius: 5px;
  font-size: .88rem;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.auth-alert--success { background: #edfaf1; border-color: #a3e6be; color: #1b5e3a; }
.auth-alert--error   { background: #fdecea; border-color: #f5a9a1; color: #7f1d1d; }
.auth-alert--info    { background: #eff6ff; border-color: #bfdbfe; color: #1e3a5f; }
.auth-alert--warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }

.field-error {
  display: block;
  font-size: .78rem;
  color: #c0392b;
  margin-top: 3px;
}

/* make textarea work in auth cards */
.auth-card textarea.input {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 90px;
}

/* ── Inline field errors ──────────────────────── */
.field-error {
  display: block;
  font-size: 11.5px;
  color: #c0392b;
  margin-top: 3px;
}

/* ── Auth alerts (flash inside card) ─────────── */
.auth-alert {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.auth-alert--success { background: #edfaf1; border-color: #a3e4b7; color: #1e6e40; }
.auth-alert--error   { background: #fef0f0; border-color: #f5c6c6; color: #8c1c1c; }
.auth-alert--info    { background: #edf4fb; border-color: #a8d0f0; color: #1a4a70; }
.auth-alert--warning { background: #fefbe8; border-color: #f0dfa0; color: #6b4f00; }
