.auth-login-root {
  overflow-x: clip;
}

.auth-login-page {
  min-height: 100svh;
  padding-top: 0;
  overflow-x: clip;
  background: #041444 url('auth-alpine-background.png') center center / cover no-repeat;
}

.auth-login-page .auth-wrap {
  width: min(100%, 1700px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 80px);
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 580px);
  align-items: start;
  align-content: center;
  gap: clamp(40px, 7vw, 140px);
}

.auth-login-hero {
  align-self: start;
  min-width: 0;
  color: #fff;
  text-shadow: 0 2px 16px rgba(2, 13, 50, .16);
}

.auth-login-hero img {
  display: block;
  width: min(100%, 520px);
  height: auto;
}

.auth-login-hero p {
  max-width: 590px;
  margin: 28px 0 0;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.auth-login-page .auth-panel {
  position: relative;
  width: 100%;
  min-height: 620px;
  padding: clamp(34px, 4vw, 62px);
  background: #f7f9fd;
  border: 1px solid rgba(221, 229, 244, .75);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(1, 12, 46, .42), 0 8px 24px rgba(1, 12, 46, .20), inset 0 1px 0 rgba(255, 255, 255, .8);
}


.auth-login-help a, .auth-recovery-restart {
  color: #245be5;
  font: inherit;
  font-weight: 600;
  text-underline-offset: 4px;
}
.auth-recovery-restart { border: 0; background: transparent; cursor: pointer; text-decoration: underline; }
.auth-login-help a:hover, .auth-recovery-restart:hover { color: #1745b5; }

.auth-login-heading {
  margin-bottom: 46px;
}

.auth-login-heading h1 {
  margin: 0;
  color: #17223d;
  font-size: clamp(28px, 2vw, 36px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.auth-login-heading p {
  margin: 14px 0 0;
  color: #7e8ba4;
  font-size: 16px;
  line-height: 1.5;
}

.auth-login-form {
  gap: 0;
}

.auth-login-form > label:not(.remember-login) {
  margin: 0 0 12px;
  color: #25304a;
  font-size: 15px;
  font-weight: 700;
}

.auth-login-form .control {
  height: 58px;
  padding: 0 20px;
  border-color: #d7e0ee;
  border-radius: 10px;
  font-size: 16px;
}

.auth-login-form .control::placeholder {
  color: #8793aa;
}

.auth-login-form > input.control,
.auth-login-password {
  margin-bottom: 27px;
}

.auth-login-password {
  position: relative;
}

.auth-login-password .control {
  padding-right: 60px;
}

.auth-login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8793aa;
  cursor: pointer;
}

.auth-login-password-toggle:hover,
.auth-login-password-toggle:focus-visible {
  color: #4381e8;
  background: #edf3ff;
}

.auth-login-form .remember-login {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #718098;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.auth-login-form .remember-login input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #5c91f8;
}

.auth-login-form .btn.primary {
  min-height: 58px;
  border-radius: 10px;
  background: #5c91f8;
  font-size: 16px;
}

.auth-login-form .btn.primary:hover {
  background: #427de8;
}

.auth-login-help {
  margin: 30px 0 0;
  color: #7e8ba4;
  font-size: 14px;
  text-align: center;
}

.auth-login-page .auth-footer {
  position: fixed;
  bottom: 10px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(246, 249, 255, .74);
}

.auth-login-page .auth-provider-caption {
  margin: 0 0 20px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
}

.auth-login-page .sso-login-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: #64748b;
}

.auth-login-page .sso-login-separator::before,
.auth-login-page .sso-login-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dbe2ea;
}

@media (max-width: 850px) {
  .auth-login-page .auth-wrap {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 26px;
    padding: 32px 20px 56px;
  }

  .auth-login-hero,
  .auth-login-page .auth-panel {
    align-self: auto;
    width: min(100%, 580px);
    margin: 0 auto;
  }

  .auth-login-hero img {
    width: min(280px, 65vw);
  }

  .auth-login-hero p {
    margin-top: 12px;
    font-size: 20px;
  }

  .auth-login-page .auth-panel {
    min-height: 0;
    padding: 32px;
  }


  .auth-login-heading {
    margin-bottom: 28px;
  }

  .auth-login-page .auth-footer {
    position: static;
    grid-column: 1;
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 480px) {
  .auth-login-page .auth-wrap {
    padding: 24px 14px 36px;
  }

  .auth-login-page .auth-panel {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .auth-login-hero p {
    font-size: 17px;
  }

  .auth-login-heading h1 {
    font-size: 27px;
  }
}
