:root {
  --auth-forest-950: #102d29;
  --auth-forest-900: #163c35;
  --auth-forest-700: #286b5d;
  --auth-sage-100: #dcebe4;
  --auth-cream: #f7f4ed;
  --auth-paper: #fffdf9;
  --auth-ink: #17211f;
  --auth-muted: #62706c;
  --auth-border: #dce4e0;
  --auth-accent: #d57858;
  --auth-danger: #b42318;
  --auth-danger-bg: #fff1ef;
  --auth-focus: #327b6c;
}

body.blank {
  margin: 0;
  background: var(--auth-cream);
  color: var(--auth-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.blank .blankctnn {
  min-height: 100vh;
}

.auth-page,
.auth-page * {
  box-sizing: border-box;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(520px, 0.95fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--auth-cream);
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(32px, 4.5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 16% 12%, rgba(213, 120, 88, .25), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(131, 188, 161, .18), transparent 31%),
    linear-gradient(145deg, var(--auth-forest-950), var(--auth-forest-900));
}

.auth-story::before,
.auth-story::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.auth-story::before {
  width: 520px;
  height: 520px;
  top: -310px;
  right: -230px;
}

.auth-story::after {
  width: 360px;
  height: 360px;
  bottom: -230px;
  left: -170px;
}

.auth-brand,
.auth-mobile-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .18em;
  text-decoration: none;
}

.auth-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(8, 34, 29, .18);
}

.auth-brand-mark img {
  display: block;
  width: 30px;
  height: 30px;
}

.auth-story-content {
  position: relative;
  z-index: 1;
  width: min(100%, 670px);
  margin: auto 0;
  padding: 56px 0 40px;
}

.auth-kicker,
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  color: #bcdccc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 660px;
  margin: 18px 0 20px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.1vw, 68px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.03;
}

.auth-story-content > p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
}

.auth-tree {
  width: min(100%, 610px);
  height: 190px;
  margin: 28px 0 12px;
  overflow: hidden;
}

.auth-tree svg {
  width: 100%;
  height: 100%;
}

.auth-tree path {
  fill: none;
  stroke: rgba(255, 255, 255, .2);
  stroke-linecap: round;
  stroke-width: 2;
}

.auth-tree circle {
  fill: rgba(255, 255, 255, .09);
  stroke: rgba(255, 255, 255, .3);
  stroke-width: 2;
}

.auth-tree circle:last-child {
  fill: var(--auth-accent);
  stroke: #efc2b2;
}

.auth-benefits {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.45;
}

.auth-benefits li span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(213, 120, 88, .32);
  font-size: 12px;
  font-weight: 800;
}

.auth-story-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  letter-spacing: .08em;
}

.auth-main {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: clamp(32px, 5vw, 80px);
}

.auth-mobile-brand {
  display: none;
  color: var(--auth-forest-900);
}

.auth-mobile-brand .auth-brand-mark {
  border-color: var(--auth-border);
  background: var(--auth-paper);
}

.auth-mobile-brand .auth-brand-mark img {
  width: 28px;
  height: 28px;
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(30px, 3.4vw, 48px);
  border: 1px solid rgba(22, 60, 53, .09);
  border-radius: 24px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 24px 70px rgba(25, 47, 42, .09), 0 3px 12px rgba(25, 47, 42, .04);
}

.auth-card-heading {
  margin-bottom: 29px;
}

.auth-eyebrow {
  color: var(--auth-forest-700);
}

.auth-card h2 {
  margin: 10px 0 8px;
  color: var(--auth-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.auth-card-heading p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-error {
  display: flex;
  margin: -4px 0 22px;
  padding: 13px 14px;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #f4c7c2;
  border-radius: 12px;
  color: var(--auth-danger);
  background: var(--auth-danger-bg);
  outline: none;
}

.auth-error > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-error div {
  display: grid;
  gap: 2px;
}

.auth-error strong,
.auth-error span {
  display: block;
  line-height: 1.35;
}

.auth-error strong {
  font-size: 14px;
}

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

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

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

.auth-field label {
  margin: 0;
  color: #31413d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-field > input,
.auth-field > select,
.register-password-wrap > input {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--auth-border);
  border-radius: 13px;
  outline: 0;
  color: var(--auth-ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.auth-field > select {
  appearance: auto;
}

.auth-field > input:hover,
.auth-field > select:hover,
.register-password-wrap > input:hover {
  border-color: #bac8c3;
}

.auth-field > input:focus,
.auth-field > select:focus,
.register-password-wrap > input:focus {
  border-color: var(--auth-focus);
  box-shadow: 0 0 0 4px rgba(50, 123, 108, .13);
}

.auth-field > input[aria-invalid="true"],
.auth-field > select[aria-invalid="true"],
.register-password-wrap > input[aria-invalid="true"] {
  border-color: #d7685f;
  background: #fffafa;
}

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

.auth-input-wrap > svg {
  position: absolute;
  z-index: 1;
  width: 20px;
  height: 20px;
  top: 18px;
  left: 17px;
  fill: none;
  stroke: #74817d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 48px;
  border: 1px solid var(--auth-border);
  border-radius: 13px;
  outline: 0;
  color: var(--auth-ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 56px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.auth-input-wrap input::placeholder {
  color: #96a19e;
}

.auth-input-wrap input:hover {
  border-color: #bac8c3;
}

.auth-input-wrap input:focus {
  border-color: var(--auth-focus);
  box-shadow: 0 0 0 4px rgba(50, 123, 108, .13);
}

.auth-input-wrap input[aria-invalid="true"] {
  border-color: #d7685f;
  background: #fffafa;
}

.auth-password-toggle {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 6px;
  right: 6px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #6e7b77;
  background: transparent;
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--auth-forest-900);
  background: var(--auth-sage-100);
}

.auth-password-toggle:focus-visible,
.auth-submit:focus-visible,
.auth-register:focus-visible,
.auth-brand:focus-visible,
.auth-footer a:focus-visible {
  outline: 3px solid rgba(50, 123, 108, .3);
  outline-offset: 3px;
}

.auth-password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-remember {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  margin: -4px 0 0;
  align-items: center;
  gap: 9px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--auth-forest-700);
}

.auth-submit,
.auth-register {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
  border: 1px solid var(--auth-forest-900);
  color: #fff;
  background: var(--auth-forest-900);
  box-shadow: 0 8px 20px rgba(22, 60, 53, .16);
}

.auth-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.auth-submit:hover {
  background: #0f312b;
  box-shadow: 0 11px 24px rgba(22, 60, 53, .22);
  transform: translateY(-1px);
}

.auth-submit:hover svg {
  transform: translateX(2px);
}

.auth-divider {
  display: flex;
  margin: 28px 0 18px;
  align-items: center;
  gap: 13px;
  color: #87928f;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--auth-border);
  content: "";
}

.auth-register {
  width: 100%;
  border: 1px solid #b7c9c2;
  color: var(--auth-forest-900);
  background: transparent;
}

.auth-register:hover {
  border-color: var(--auth-forest-700);
  background: #f0f7f3;
}

.auth-privacy {
  display: flex;
  margin: 22px 0 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #84908c;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.auth-privacy svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-footer {
  position: absolute;
  bottom: 24px;
  color: #7c8884;
  font-size: 12px;
}

.auth-footer a {
  color: var(--auth-forest-700);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-page.is-register {
  grid-template-columns: minmax(370px, .82fr) minmax(650px, 1.18fr);
}

.register-main {
  justify-content: flex-start;
  padding-top: 40px;
  padding-bottom: 64px;
}

.register-card {
  width: min(100%, 760px);
  padding: clamp(28px, 3vw, 42px);
}

.register-card .auth-card-heading {
  margin-bottom: 24px;
}

.register-card .auth-card-heading h2 {
  font-size: clamp(30px, 3vw, 38px);
}

.register-form {
  gap: 22px;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.register-password-wrap {
  position: relative;
}

.register-password-wrap > input {
  padding-right: 52px;
}

.auth-field-hint,
.auth-field-error {
  display: block;
  min-height: 17px;
  color: #7a8883;
  font-size: 12px;
  line-height: 1.4;
}

.auth-field-error {
  color: var(--auth-danger);
  font-weight: 650;
}

.auth-field-error:empty {
  display: none;
}

.auth-optional {
  color: #7f8c88;
  font-size: 11px;
  font-weight: 500;
}

.register-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.register-consent input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 1px 0 0;
  accent-color: var(--auth-forest-700);
}

.register-consent a,
.register-login-link a {
  color: var(--auth-forest-700);
  font-weight: 750;
}

.consent-error {
  margin-top: -15px;
}

.register-login-link {
  margin: 22px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  text-align: center;
}

.register-benefits {
  margin-top: 34px;
}

.register-benefits li span {
  background: rgba(213, 120, 88, .36);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

@media (max-width: 1050px) {
  .auth-page {
    grid-template-columns: minmax(360px, .85fr) minmax(500px, 1.15fr);
  }

  .auth-story {
    padding: 42px;
  }

  .auth-story h1 {
    font-size: 45px;
  }

  .auth-tree {
    height: 150px;
  }

  .auth-page.is-register {
    grid-template-columns: minmax(330px, .7fr) minmax(610px, 1.3fr);
  }
}

@media (max-width: 820px) {
  .auth-page {
    display: block;
  }

  .auth-story {
    display: none;
  }

  .auth-main {
    min-height: 100vh;
    min-height: 100svh;
    padding: 80px 28px 72px;
  }

  .auth-mobile-brand {
    display: inline-flex;
    margin-bottom: 28px;
  }

  .auth-card {
    border-radius: 20px;
  }

  .register-main {
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .auth-main {
    justify-content: flex-start;
    padding: 28px 18px 64px;
  }

  .auth-mobile-brand {
    align-self: flex-start;
    margin-bottom: 24px;
    font-size: 16px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 18px;
    box-shadow: 0 14px 45px rgba(25, 47, 42, .08);
  }

  .auth-card h2 {
    font-size: 31px;
  }

  .auth-footer {
    position: static;
    margin-top: 24px;
  }

  .register-main {
    padding-top: 28px;
  }

  .register-card {
    padding: 26px 18px;
  }

  .register-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
