.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  color: #193443;
  background: #fff;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-art {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 48px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 72px);
  color: #fff;
  background: #102d40;
}

.auth-art::after {
  position: absolute;
  z-index: -1;
  top: clamp(140px, 22vh, 235px);
  right: -11.25rem;
  width: 34.375rem;
  aspect-ratio: 1;
  border: 1px solid #61959366;
  border-radius: 50%;
  box-shadow: 0 0 0 60px #4c94901c, 0 0 0 120px #4c949012;
  content: "";
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: .16em;
}

.auth-brand .ship-mark { background: #9ce0ca; }

.auth-art-content {
  align-self: center;
  padding-block-end: 48px;
}

.auth-art-title {
  max-width: 470px;
  margin: 0 0 20px;
  font-size: clamp(33px, 4.3vw, 53px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.auth-art-copy {
  max-width: 35ch;
  margin: 0;
  color: #aec6c9;
  font-size: 16px;
  line-height: 1.75;
}

.auth-layout .auth-card {
  align-self: center;
  justify-self: center;
  width: min(390px, 100% - 64px);
  max-width: none;
  padding: 40px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.auth-layout #auth-title {
  margin: 0 0 10px;
  color: #102d40;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.15;
}

.auth-layout .subtitle {
  margin: 0 0 28px;
  color: #526970;
  font-size: 16px;
  line-height: 1.55;
}

.auth-layout #auth-form {
  display: flex;
  flex-direction: column;
}

.auth-layout #auth-form label {
  margin-bottom: 7px;
  color: #193443;
  font-size: 15px;
  font-weight: 600;
}

.auth-layout #auth-form input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #afc4c0;
  border-radius: 9px;
  color: #193443;
  background: #fff;
  font-size: 16px;
}

.auth-layout #auth-form input::placeholder {
  color: #62767c;
}

.auth-layout #auth-form input:focus {
  border-color: #087f80;
  outline: 2px solid #087f80;
  outline-offset: 2px;
  box-shadow: none;
}

.auth-layout #submit-button {
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #087f80;
  border-radius: 9px;
  color: #fff;
  background: #087f80;
  font-weight: 700;
}

.auth-layout #submit-button:hover:not(:disabled) {
  background: #066668;
}

.auth-layout #submit-button:disabled {
  border-color: #526970;
  background: #526970;
  cursor: wait;
}

.auth-layout #auth-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #edced1;
  border-radius: 8px;
  color: #872b38;
  background: #fff3f4;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.auth-layout #auth-error:empty {
  display: none;
}

.auth-layout #auth-error.is-success {
  border-color: #c0ded1;
  color: #245f47;
  background: #eaf6ef;
}

.auth-layout .auth-switch {
  margin: 18px 0 0;
  color: #526970;
  font-size: 15px;
  text-align: left;
}

.auth-layout #switch-button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  color: #086d6f;
  background: transparent;
  font-weight: 650;
}

.auth-layout #switch-button:hover {
  background: #dff3ed;
  text-decoration: underline;
}

.auth-layout button:focus-visible {
  outline: 2px solid #087f80;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth-art {
    gap: 22px;
    padding: 24px;
  }

  .auth-art::after {
    top: 12%;
    right: -11rem;
    width: 20rem;
  }

  .auth-art-content {
    padding-block-end: 0;
  }

  .auth-art-title {
    margin: 0;
    font-size: clamp(26px, 6vw, 34px);
  }

  .auth-art-copy {
    display: none;
  }

  .auth-layout .auth-card {
    align-self: start;
    width: min(410px, 100% - 48px);
    padding-block: 28px;
  }
}
