* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.auth-page {
  --auth-blue: var(--hub-brand-blue);
  --auth-ink: #18285a;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  min-height: 100dvh;
  overflow: clip;
  background: var(--surface);
}
.auth-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(32px, 4.5vw, 78px);
  background: var(--auth-blue);
  color: var(--surface);
}
.auth-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -15%;
  right: -185px;
  width: 370px;
  height: 130%;
  border-radius: 50%;
  background: var(--surface);
}
.auth-logo {
  display: block;
  width: clamp(112px, 10vw, 154px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.auth-hero-copy {
  max-width: 590px;
  margin: auto 110px auto 0;
  padding: 34px 0 0;
}
.auth-hero-title {
  margin: 0;
  color: var(--surface);
  font-family: var(--hub-heading-font);
  font-size: clamp(44px, 4.25vw, 76px);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.auth-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 60px clamp(42px, 6vw, 116px) 60px clamp(28px, 3vw, 58px);
  background: var(--surface);
}
.auth-form {
  width: min(100%, 570px);
  margin: 0 auto;
}
.auth-form h1 {
  margin: 0 0 16px;
  color: var(--auth-blue);
  font-family: var(--hub-heading-font);
  font-size: clamp(32px, 3vw, 49px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.auth-form-intro {
  margin: 0 0 36px;
  color: #556587;
  font-size: 16px;
  line-height: 1.55;
}
.auth-field {
  margin: 0 0 26px;
}
.auth-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--auth-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.auth-field input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 8px 0 14px;
  border: 0;
  border-bottom: 2px solid #a9b9e6;
  border-radius: 0;
  background: transparent;
  color: var(--auth-ink);
  font-family: var(--hub-ui-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.auth-field input::placeholder {
  color: #6276a1;
  opacity: 1;
}
.auth-field input:hover {
  border-bottom-color: var(--auth-blue);
}
.auth-field input:focus-visible {
  border-bottom-color: var(--auth-blue);
  outline: 2px solid var(--auth-blue);
  outline-offset: 3px;
}
.auth-form .error {
  margin: -20px 0 28px;
  padding: 14px 18px;
  border: 0;
  border-left: 4px solid #ae302d;
  border-radius: 0;
  background: #fff1ef;
  color: #8b2623;
  font-size: 14px;
  line-height: 1.5;
}
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  cursor: pointer;
  min-height: 40px;
  margin: 14px 0 0;
  padding: 8px 14px;
  border: 1px solid var(--auth-blue);
  border-radius: var(--hub-control-radius);
  background: var(--auth-blue);
  color: var(--surface);
  font-family: var(--hub-heading-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}
.auth-submit:hover {
  border-color: var(--hub-brand-blue-hover);
  background: var(--hub-brand-blue-hover);
}
.auth-submit:active {
  transform: translateY(2px);
}
.auth-submit:focus-visible {
  outline: 3px solid var(--auth-blue);
  outline-offset: 4px;
}
.auth-help {
  margin: 28px 0 0;
  color: #657499;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .auth-page {
    grid-template-columns: minmax(0, 49%) minmax(0, 51%);
  }
  .auth-hero::after {
    right: -135px;
    width: 270px;
  }
  .auth-hero-copy {
    margin-right: 70px;
  }
  .auth-hero-title {
    font-size: clamp(39px, 4.3vw, 54px);
  }
  .auth-main {
    padding-right: 48px;
  }
}
@media (max-width: 800px) {
  .auth-page {
    display: block;
    overflow: visible;
  }
  .auth-hero {
    min-height: 345px;
    padding: 28px 32px 46px;
    border-bottom-right-radius: 110px;
  }
  .auth-hero::after {
    display: none;
  }
  .auth-logo {
    width: 105px;
  }
  .auth-hero-copy {
    max-width: 540px;
    margin: 34px 70px 0 0;
    padding: 0;
  }
  .auth-hero-title {
    font-size: clamp(36px, 6vw, 52px);
  }
  .auth-main {
    padding: 52px 48px 70px;
  }
  .auth-form {
    max-width: 590px;
  }
}
@media (max-width: 480px) {
  .auth-hero {
    min-height: 290px;
    padding: 24px 24px 38px;
    border-bottom-right-radius: 90px;
  }
  .auth-logo {
    width: 88px;
  }
  .auth-hero-copy {
    margin: 27px 36px 0 0;
  }
  .auth-hero-title {
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.12;
  }
  .auth-main {
    padding: 38px 24px 60px;
  }
  .auth-form h1 {
    font-size: 34px;
  }
  .auth-form-intro {
    margin-bottom: 32px;
    font-size: 15px;
  }
  .auth-field {
    margin-bottom: 26px;
  }
  .auth-field input {
    min-height: 50px;
    font-size: 16px;
  }
  .auth-submit {
    min-height: var(--hub-icon-touch-target);
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-field input,
  .auth-submit {
    transition: none;
  }
  .auth-submit:active { transform: none; }
}

.auth-password {
  position: relative;
  display: block;
}
.auth-password input { padding-inline-end: 52px; }
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: var(--hub-icon-touch-target);
  height: var(--hub-icon-touch-target);
  padding: 0;
  border: 0;
  border-radius: var(--hub-control-radius);
  background: transparent;
  color: var(--auth-blue);
  cursor: pointer;
}
.auth-password-toggle[hidden],
.auth-password-toggle svg[hidden] { display: none; }
.auth-password-toggle:hover { background: var(--surface-subtle); }
.auth-password-toggle:focus-visible {
  outline: 2px solid var(--auth-blue);
  outline-offset: 2px;
}

.auth-link {
  color: var(--auth-blue);
  text-underline-offset: 3px;
}
.auth-link:hover { color: var(--hub-brand-blue-hover); }
.auth-link:focus-visible {
  outline: 2px solid var(--auth-blue);
  outline-offset: 3px;
}
.auth-forgot {
  display: inline-block;
  margin-top: 10px;
  padding-block: 4px;
  font-size: 14px;
}
