body.loginPageMode #loginModal {
  position: static;
  inset: auto;
  background: transparent;
  padding: 24px;
  min-height: calc(100vh - 120px);
  align-items: flex-start;
  z-index: 1;
}

body.loginPageMode #loginModal .questionModal {
  margin: 24px auto 0;
  max-width: 560px;
}

.questionModal {
  width: min(680px, 100%);
  max-height: min(680px, 88vh);
  overflow: auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 22px;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.modalHeader h2 {
  margin: 0;
  color: #123d74;
  font-size: 24px;
}

.modalCloseBtn {
  width: 21px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #123d74;
  color: white;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.authForm {
  display: grid;
  gap: 14px;
}

.authField {
  display: grid;
  gap: 6px;
}

.authField label {
  color: #123d74;
  font-weight: 800;
}

.authField input {
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  color: #123d74;
  font-size: 17px;
}

.authField input:focus {
  outline: 3px solid rgba(124, 45, 131, 0.24);
  border-color: #7c2d83;
}

.authPasswordRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}

.authEyeBtn {
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #123d74;
  height: 48px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.authSubmitBtn {
  border: none;
  background: #123d74;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.authMessage {
  min-height: 22px;
  color: #7c2d83;
  font-weight: 800;
}

#forgotMessage {
  text-align: center;
}

.authSwitch {
  text-align: center;
  color: #334155;
  font-weight: 700;
}

.authLink {
  border: none;
  background: transparent;
  color: #7c2d83;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
}

.authLink:hover,
.authLink:focus {
  color: #123d74;
  outline: none;
}

#loginTwoFactorForm .reviewActions {
  margin-top: 18px;
}
