/* ── login screen ────────────────────────────────────────── */
.auth-shell {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.auth-brand .wordmark {
  display: inline-block;
  line-height: 0; /* prevent baseline gap under the img */
}
.auth-brand .wordmark .wm-logo {
  display: block;
  height: 40px;
  width: auto;
}
.auth-brand .tag {
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--stone-gray);
}

.auth-step .eyebrow { margin-bottom: 14px; text-align: center; }

.auth-step h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 40px;
  color: var(--ink-navy);
  letter-spacing: -0.012em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 12px;
}
.auth-step h1 em {
  font-style: italic;
  color: var(--muted-burgundy);
  font-weight: 400;
}
.auth-step .lede {
  text-align: center;
  font-size: 14px;
  color: var(--deep-slate);
  line-height: 1.65;
  margin-bottom: 32px;
}
.auth-step .lede strong {
  color: var(--ink-navy);
  font-weight: 500;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}

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

.auth-field { display: flex; flex-direction: column; gap: 10px; }
.auth-field label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-gray);
  font-weight: 500;
}
.auth-field input {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-navy);
  background: var(--ivory-card);
  border: 1px solid var(--ivory-border);
  padding: 14px 16px;
  border-radius: 2px;
  outline: none;
  transition: border-color 180ms ease;
  width: 100%;
}
.auth-field input:focus { border-color: var(--muted-burgundy); }
.auth-field input.otp-input {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  letter-spacing: 0.45em;
  text-align: center;
  padding: 16px 12px 16px 24px;
}

.auth-form .btn { width: 100%; padding: 16px 24px; font-size: 12px; }

.auth-message {
  display: none;
  margin-top: -4px;
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.auth-message.is-shown { display: block; }
.auth-message.is-error {
  background: rgba(107,58,58,0.06);
  border: 1px solid var(--burgundy-soft);
  color: var(--muted-burgundy);
}
.auth-message.is-success {
  background: rgba(91,128,104,0.07);
  border: 1px solid rgba(91,128,104,0.35);
  color: var(--sage);
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--stone-gray);
  letter-spacing: 0.01em;
  align-self: flex-start;
  margin-top: -2px;
}
.auth-remember input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.auth-remember .checkmark {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ivory-border);
  border-radius: 2px;
  background: var(--ivory-card);
  position: relative;
  flex-shrink: 0;
  transition: border-color 150ms ease, background 150ms ease;
}
.auth-remember:hover .checkmark { border-color: var(--ink-navy); }
.auth-remember input[type="checkbox"]:focus-visible + .checkmark {
  outline: 2px solid var(--muted-burgundy);
  outline-offset: 2px;
}
.auth-remember input[type="checkbox"]:checked + .checkmark {
  background: var(--ink-navy);
  border-color: var(--ink-navy);
}
.auth-remember input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 6.2l2.4 2.4 4.7-5.6' stroke='%23F3F1EC' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.auth-foot {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--stone-gray);
  letter-spacing: 0.02em;
}
.auth-foot a {
  color: var(--ink-navy);
  border-bottom: 1px solid var(--stone-soft);
  padding-bottom: 1px;
  transition: border-color 150ms ease, color 150ms ease;
}
.auth-foot a:hover { color: var(--muted-burgundy); border-color: var(--muted-burgundy); }
.auth-foot .resend.disabled { color: var(--stone-soft); cursor: default; }
.auth-foot .resend.disabled:hover { color: var(--stone-soft); border-color: transparent; }
.auth-foot .resend { background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: var(--ink-navy); border-bottom: 1px solid var(--stone-soft); padding-bottom: 1px; }
.auth-foot .version {
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--stone-soft);
  margin-top: 6px;
}

.auth-back {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone-gray);
  margin-bottom: 18px;
  transition: color 150ms ease;
}
.auth-back:hover { color: var(--ink-navy); }

.is-hidden { display: none !important; }

@media (max-width: 540px) {
  .auth-step h1 { font-size: 32px; }
  .auth-field input.otp-input { font-size: 22px; letter-spacing: 0.35em; }
}
