.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 96% 3%, rgba(201, 242, 123, 0.3), transparent 29rem),
    radial-gradient(circle at 4% 90%, rgba(219, 117, 85, 0.11), transparent 24rem),
    var(--canvas);
}

.auth-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1240px, calc(100vw - 48px));
  min-height: 100vh;
  margin-inline: auto;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.auth-header > a:last-child {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.auth-header > a:last-child:hover {
  color: var(--forest);
}

.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.68fr);
  align-items: stretch;
  gap: clamp(34px, 7vw, 94px);
  padding: clamp(48px, 7vw, 88px) 0;
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  min-height: 620px;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 31px;
  background:
    radial-gradient(circle at 87% 15%, rgba(201, 242, 123, 0.19), transparent 18rem),
    linear-gradient(142deg, #173c30 0%, #0d2b22 72%);
  color: #fff;
  padding: clamp(34px, 5vw, 58px);
  box-shadow: var(--shadow-lg);
}

.auth-story::after {
  position: absolute;
  right: -100px;
  bottom: -145px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.auth-story-copy {
  position: relative;
  z-index: 1;
}

.auth-story .kicker {
  color: var(--lime);
}

.auth-story h1 {
  max-width: 640px;
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: clamp(47px, 5.4vw, 74px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.auth-story h1 em {
  color: var(--lime);
  font-weight: 500;
}

.auth-story-copy > p:last-child {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.75;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 42px;
}

.auth-benefits div {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.045);
  padding: 15px;
}

.auth-benefits span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 242, 123, 0.14);
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
}

.auth-benefits strong {
  display: block;
  margin-top: 11px;
  font-size: 10px;
  line-height: 1.4;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  align-self: center;
  min-height: 620px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 29px;
  background: rgba(255, 253, 248, 0.94);
  padding: clamp(30px, 5vw, 52px);
  box-shadow: var(--shadow-sm);
}

.auth-panel-head {
  margin-bottom: 27px;
}

.auth-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-step::before {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--clay);
  content: "";
}

.auth-panel h2 {
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: clamp(36px, 4vw, 49px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.auth-panel-head > p:last-child {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field > label {
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  width: 100%;
  min-height: 53px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 15px;
  font-size: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-input-wrap.has-toggle input {
  padding-right: 74px;
}

.auth-input-wrap input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(23, 60, 48, 0.08);
}

.auth-input-wrap input[aria-invalid="true"] {
  border-color: #9b362e;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  padding: 8px 9px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.field-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  border-radius: 15px;
  background: var(--forest);
  color: #fff;
  margin-top: 3px;
  padding: 8px 9px 8px 18px;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(23, 60, 48, 0.2);
}

.auth-submit span {
  font-size: 11px;
  font-weight: 850;
}

.auth-submit svg {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--lime);
  color: var(--forest);
  padding: 10px;
}

.auth-submit:disabled,
.auth-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-form-row a,
.auth-switch a,
.auth-inline-link {
  color: var(--forest);
  font-size: 9px;
  font-weight: 850;
  text-underline-offset: 3px;
}

.auth-message {
  min-height: 17px;
  margin: 0;
  color: #9b362e;
  font-size: 10px;
  line-height: 1.5;
}

.auth-message.success {
  color: #17603f;
}

.auth-message.notice {
  color: var(--ink-soft);
}

.auth-switch {
  border-top: 1px solid var(--line);
  margin: 25px 0 0;
  padding-top: 20px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.verification-help {
  border-radius: 13px;
  background: var(--sage);
  margin: -4px 0 0;
  padding: 11px 13px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.auth-secondary-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--forest);
  padding: 0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-security-note {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 18px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.auth-security-note span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--sage);
  color: var(--forest);
  font-weight: 900;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--ink-soft);
  font-size: 9px;
}

.auth-footer a {
  color: var(--forest);
  font-weight: 850;
}

@media (max-width: 900px) {
  .auth-main {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 410px;
  }

  .auth-panel {
    width: min(640px, 100%);
    min-height: auto;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    width: min(100% - 28px, 1240px);
  }

  .auth-header {
    min-height: 78px;
  }

  .auth-header .brand-copy small,
  .auth-header > a:last-child {
    display: none;
  }

  .auth-main {
    gap: 18px;
    padding: 25px 0 40px;
  }

  .auth-panel {
    order: -1;
  }

  .auth-story {
    min-height: 350px;
    padding: 30px 25px;
  }

  .auth-story h1 {
    font-size: 44px;
    overflow-wrap: anywhere;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
  }

  .auth-benefits div:nth-child(n + 2) {
    display: none;
  }

  .auth-benefits div {
    min-height: auto;
  }

  .auth-panel {
    border-radius: 23px;
    padding: 29px 22px;
  }

  .auth-input-wrap input {
    font-size: 16px;
  }

  .auth-field > label,
  .field-hint,
  .auth-message,
  .auth-switch,
  .verification-help,
  .auth-security-note,
  .auth-form-row a,
  .auth-switch a,
  .auth-inline-link,
  .auth-secondary-button {
    font-size: 12px;
  }

  .password-toggle {
    min-width: 44px;
    min-height: 44px;
    font-size: 10px;
  }

  .auth-secondary-button {
    min-height: 44px;
    padding: 9px 3px;
  }

  .auth-submit span {
    font-size: 13px;
  }

  .auth-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
