.auth-page {
  --auth-text: #17392c;
  --auth-soft: #47655a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(ellipse at 87% 28%, #d9f0e2, transparent 54%), linear-gradient(150deg, #f7faf6, #edf6ef);
}

.auth-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-height: 77px;
  padding-block: 9px;
}
.auth-bar .brand { color: var(--ink); }
.auth-back { display: inline-flex; align-items: center; gap: 6px; min-height: 41px; color: var(--auth-text); font-size: .86rem; font-weight: 660; text-decoration: none; }
.auth-back:hover { text-decoration: underline; }

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  gap: clamp(10px, 2vw, 23px);
  max-width: 1080px;
  margin-block: auto;
  padding-block: clamp(20px, 4.9vw, 65px);
}
.auth-story, .auth-card { min-width: 0; border-radius: clamp(17px, 2.7vw, 27px); padding: clamp(25px, 4.6vw, 52px); }

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  min-height: 530px;
  color: #f1fff6;
  background: radial-gradient(ellipse at 87% 11%, #2f8b62, transparent 67%), linear-gradient(142deg, #0d3326, #103b2d 68%, #09261d);
}
.auth-story::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: repeating-radial-gradient(ellipse at 93% 42%, transparent 0 30px, #b1f4ca22 31px 32px);
  mask-image: linear-gradient(115deg, transparent 10%, #000 73%);
}
.auth-story-label { margin-bottom: 11px; color: #c1f8d5; font-size: .79rem; font-weight: 700; }
.auth-story-title { max-width: 14ch; font-size: clamp(2.35rem, 4.7vw, 3.75rem); font-weight: 750; line-height: 1.03; letter-spacing: -.055em; text-wrap: balance; }
.auth-story-copy { margin-top: 15px; color: #def2e6; font-size: .97rem; }
.auth-report {
  display: grid;
  gap: 8px;
  margin-top: clamp(20px, 3.6vw, 35px);
  padding: 14px 16px;
  border: 1px solid #b0f5ca66;
  border-radius: 14px;
  background: linear-gradient(120deg, #153e31de, #266348ba);
  box-shadow: inset 0 1px #d5ffe542, 0 9px 26px #061f1859;
}
.auth-report-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; color: #e5f8e9; font-size: .72rem; }
.auth-report-heading span:last-child { color: #c4f9d8; }
.auth-report > strong { font-size: clamp(1.7rem, 4.2vw, 2.55rem); font-variant-numeric: tabular-nums; line-height: 1.07; letter-spacing: -.045em; }
.auth-report-chart { position: relative; height: 55px; background: repeating-linear-gradient(to bottom, #c0efce32 0 1px, transparent 1px 33%); }
.auth-report-metrics { display: flex; flex-wrap: wrap; gap: 7px 16px; }
.auth-report-metrics div { flex: 1 0 auto; display: flex; align-items: baseline; gap: 6px; }
.auth-report-metrics dt { color: #d5efdf; font-size: .73rem; }
.auth-report-metrics dd { font-size: .86rem; font-variant-numeric: tabular-nums; font-weight: 700; }

.auth-card {
  display: flex;
  align-items: center;
  border: 1px solid #bad7c8;
  background: linear-gradient(146deg, #fff 20%, #f5faf6 91%);
  box-shadow: 0 17px 57px #164c2d17, inset 0 1px #fff;
}
.auth-panel { width: 100%; min-width: 0; max-width: 375px; margin-inline: auto; }
.auth-panel[hidden], .auth-form[hidden], .auth-feedback[hidden] { display: none; }
.auth-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 19px;
  border: 1px solid #c4e4d2;
  border-radius: 12px;
  color: #176247;
  background: linear-gradient(147deg, #eaf9ed, #d4f1df);
}
.auth-symbol::before, .auth-symbol::after { position: absolute; content: ""; }
.auth-symbol-mail::before { width: 20px; height: 15px; border: 1.5px solid; border-radius: 3px; }
.auth-symbol-mail::after { top: 14px; width: 11px; height: 11px; border: solid; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.auth-symbol-key::before { top: 13px; left: 13px; width: 12px; height: 12px; border: 1.5px solid; border-radius: 50%; }
.auth-symbol-key::after { top: 23px; left: 22px; width: 10px; height: 5px; border: solid; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.auth-panel h1 { font-size: clamp(2rem, 4.45vw, 2.9rem); letter-spacing: -.052em; }
.auth-description { margin-top: 11px; color: var(--auth-soft); font-size: .99rem; overflow-wrap: anywhere; }
.auth-description strong { color: var(--auth-text); }
.auth-form { display: grid; gap: 14px; margin-top: 24px; }
.auth-field { display: block; color: var(--auth-text); font-size: .88rem; font-weight: 700; }
.auth-optional { color: var(--auth-soft); font-size: .82rem; font-weight: 500; }
.auth-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin-top: 6px;
  padding: 10px 13px;
  appearance: none;
  border: 1px solid #b9d3c5;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 520;
}
.auth-field input::placeholder { color: #567166; }
.auth-field input[aria-invalid="true"] { border-color: #a44751; }
.auth-field .auth-code-input {
  max-width: 100%;
  padding-left: .31em;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.45rem, 4.7vw, 1.85rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: .29em;
}
.auth-submit {
  width: 100%;
  min-height: 52px;
  border: 1px solid #2a795d;
  background: linear-gradient(110deg, #195c43, #12513d);
  color: #f4fff7;
  box-shadow: 0 5px 13px #103d2c24;
  font-family: inherit;
  cursor: pointer;
}
.auth-submit:hover:not(:disabled) { background: linear-gradient(110deg, #226f51, #14553e); }
.auth-submit:disabled { cursor: wait; opacity: .79; }
.auth-switch { margin-top: 20px; color: var(--auth-soft); font-size: .91rem; }
.auth-switch a, .auth-footer a, .auth-fallback a { color: #1a5f45; font-weight: 690; }
.auth-fallback { margin-top: 20px; color: var(--auth-soft); font-size: .92rem; }
.auth-code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 13px; margin-top: 11px; }
.auth-text-button { min-height: 42px; padding: 7px 0; border: 0; color: #185e44; background: transparent; font: inherit; font-size: .88rem; font-weight: 720; cursor: pointer; text-decoration: underline; }
.auth-text-button:disabled { cursor: default; color: #516e64; text-decoration: none; }
.auth-hint { color: var(--auth-soft); font-size: .83rem; }
.auth-feedback { padding: 9px 11px; border: 1px solid #bddec9; border-radius: 8px; background: #e8f5ec; color: #225a44; font-size: .88rem; }
.auth-feedback[data-kind="error"] { border-color: #edc6bf; color: #74362f; background: #fbefed; }
.auth-feedback:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; clip-path: inset(50%); }
.auth-availability { margin-top: 16px; }
.auth-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 22px; padding-block: 8px 18px; font-size: .84rem; }
.auth-footer a { display: inline-flex; align-items: center; min-height: 40px; }

@media (max-width: 740px) {
  .auth-layout { width: min(500px, calc(100% - 30px)); grid-template-columns: minmax(0, 1fr); }
  .auth-story { display: none; }
  .auth-bar { min-height: 66px; }
  .auth-card { min-height: 0; }
}
@media (max-width: 375px) {
  .auth-card { padding: 22px 17px; }
  .auth-back { font-size: .79rem; }
  .auth-bar .brand { font-size: .99rem; }
}
