:root {
  --auth-navy: #172640;
  --auth-navy-soft: #213454;
  --auth-blue: #365ce6;
  --auth-blue-soft: #eef3ff;
  --auth-line: #dfe5ef;
  --auth-text: #172238;
  --auth-muted: #67748d;
}

body.no-server-session {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--auth-text);
}

#auth.auth {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: #fff;
}

#auth .auth-story {
  min-height: 100dvh;
  padding: 58px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 45px;
  background: var(--auth-navy);
  color: #fff;
}

#auth .auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
}

#auth .auth-brand small {
  display: block;
  margin-top: 6px;
  color: #b9c7df;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.9px;
}

#auth .auth-brandmark {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--auth-blue);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

#auth .auth-story-copy {
  width: min(100%, 450px);
  margin: auto 0;
}

#auth .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #aac5fa;
  font-size: 12px;
}

#auth .auth-story h2 {
  max-width: 450px;
  margin: 0;
  color: #fff;
  font: 700 44px/1.25 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -1.6px;
}

#auth .auth-story p {
  max-width: 400px;
  margin: 20px 0 0;
  color: #b6c5df;
  font-size: 14px;
  line-height: 1.6;
}

#auth .auth-progress-card {
  width: min(100%, 420px);
  margin-top: 22px;
  padding: 23px;
  border: 1px solid #35506f;
  border-radius: 20px;
  background: #223957;
  box-shadow: none;
}

#auth .auth-progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  font-size: 13px;
}

#auth .auth-progress-card > div:first-child span,
#auth .auth-progress-card > small {
  color: #aebdd4;
  font-size: 11px;
}

#auth .auth-progress {
  height: 6px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
}

#auth .auth-progress i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: #7f9dff;
}

#auth .auth-story-foot {
  color: #95a8c5;
  font-size: 11px;
  letter-spacing: .04em;
}

#auth .auth-panel {
  min-width: 0;
  min-height: 100dvh;
  padding: 45px 38px;
  display: grid;
  place-items: center;
  background: #fff;
}

#auth .panel {
  width: min(100%, 390px);
  min-block-size: 0;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: center;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#auth .auth-kicker {
  color: var(--auth-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
}

#auth .panel h1 {
  margin: 0;
  color: var(--auth-text);
  font: 700 31px/1.25 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -1px;
}

#auth .panel > p {
  margin: -6px 0 4px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

#auth .auth-field {
  display: grid;
  gap: 7px;
  color: #43506a;
  font-size: 12px;
  font-weight: 650;
}

#auth input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--auth-line);
  border-radius: 11px;
  background: #fff;
  color: var(--auth-text);
  font: 400 16px/1.3 Inter, "Segoe UI", Arial, sans-serif;
  outline: 0;
}

#auth input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(54, 92, 230, .11);
}

#auth .password-control {
  position: relative;
  display: block;
}

#auth .password-control input {
  padding-right: 74px;
}

#auth .password-control button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: auto;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--auth-blue);
  font-size: 13px;
}

#auth .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#auth .remember-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f5c74;
  font-size: 12px;
}

#auth .remember-login input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--auth-blue);
}

#auth button {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--auth-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

#auth #loginSubmit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#auth button.text-button {
  width: auto;
  min-height: 44px;
  padding: 4px 0;
  background: transparent;
  color: var(--auth-blue);
  font-size: 13px;
}

#auth .remember-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--auth-blue-soft);
  color: #53637e;
  font-size: 12px;
  line-height: 1.55;
}

#auth .auth-admin-note {
  color: #8a95a8;
  font-size: 11px;
  text-align: center;
}

#auth #authError,
#auth #twoFactorError,
#auth #forgotError,
#auth #resetError {
  min-height: 0;
  color: #b42318;
  font-size: 12px;
}

#auth .human-check {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #f7f9fc;
}

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

  #auth .auth-story {
    display: none;
  }

  #auth .auth-panel {
    min-height: 100dvh;
    padding: 38px 22px;
  }

  #auth .panel {
    width: min(100%, 390px);
  }

  #auth .panel h1 {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  #auth .auth-panel {
    padding-inline: 18px;
  }

  #auth .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
