.auth-page {
  --bg: #f7f7ef;
  --ink: #183c2f;
  --ink-2: #395445;
  --primary: #194d38;
  --primary-strong: #113a2b;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-head: var(--font-body);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.auth-header, .auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-inline: max(24px, calc((100% - 1160px) / 2));
}
.auth-header {
  min-height: 70px;
  border-bottom: 1px solid #d8dfd2;
  background: #faf9f3;
}
.auth-header .brand { gap: 9px; font-size: 23px; letter-spacing: -.055em; }
.auth-account-link { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #485d4f; }
.auth-account-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #bfceb9;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 600;
}
.auth-account-link a:hover { background: #eaf0e2; }
.auth-main {
  flex: 1;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(30px, 5.5vh, 58px) 20px;
}
.auth-page .auth-card {
  width: min(100%, 485px);
  padding: clamp(24px, 4vw, 42px);
  box-sizing: border-box;
  border: 1px solid #cdd7c9;
  border-top: 4px solid #3d634a;
  border-radius: 12px;
  background: #fffefa;
  box-shadow: 0 8px 28px #23442f09;
}
.auth-page .auth-card h1 {
  font: 400 clamp(38px, 4vw, 51px)/1.03 "Instrument Serif", Georgia, serif;
  letter-spacing: -.038em;
  color: var(--ink);
  margin: 0;
}
.auth-page .auth-card .sub { margin: 12px 0 24px; color: #4d6153; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-page a:focus-visible, .auth-page button:focus-visible { outline: 2px solid #356843; outline-offset: 3px; }
.auth-page .field { gap: 6px; margin-bottom: 17px; }
.auth-page .field label { color: #264435; font-size: 14px; font-weight: 600; }
.auth-page .field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  border: 1px solid #b9c8b9;
  border-radius: 7px;
  font-size: 16px;
}
.auth-page .field input:focus { outline: 2px solid #4a7556; outline-offset: 1px; border-color: transparent; }
.auth-page input::placeholder { color: #69786c; opacity: 1; }
.auth-page .field small, .auth-page .optional { color: #576a5b; font-size: 12px; font-weight: 400; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row a, .auth-code-actions button { font-size: 13px; font-weight: 500; }
.auth-fields-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-page .auth-submit { width: 100%; min-height: 46px; margin-top: 2px; border-radius: 7px; }
.auth-info, .auth-page .form-error { border-radius: 7px; padding: 11px 13px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-info { background: #edf3e6; color: #304d35; border: 1px solid #cfddc4; }
.auth-page [hidden] { display: none !important; }
.auth-page #code { font-size: 23px; letter-spacing: .26em; font-variant-numeric: tabular-nums; }
.auth-code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; margin-top: 12px; }
.auth-code-actions button { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-family: inherit; padding: 6px 0; }
.auth-code-actions button:hover, .auth-card a { text-decoration: underline; text-underline-offset: 3px; }
.auth-consent, .auth-secondary { margin: 16px 0 0; font-size: 13px; line-height: 1.55; color: #516457; }
.auth-footer { min-height: 60px; padding-block: 9px; border-top: 1px solid #d8dfd2; color: #546858; font-size: 12px; }
.auth-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.auth-footer a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 600px) {
  .auth-header, .auth-footer { padding-inline: 18px; }
  .auth-header { min-height: 60px; }
  .auth-header .brand { font-size: 21px; }
  .auth-account-link > span { display: none; }
  .auth-main { padding: 23px 14px; }
  .auth-page .auth-card { padding: 23px 18px; }
  .auth-page .auth-card .sub { margin: 9px 0 18px; }
}
@media (max-width: 380px) {
  .auth-fields-pair { grid-template-columns: 1fr; gap: 0; }
  .auth-footer { align-items: start; flex-wrap: wrap; }
}
