/* Localized from the official Ant Design Pro LoginForm layout and tokens. */
.loginScreen {
  width: 100%;
  height: 100svh;
  min-height: 620px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  color: #1f1f1f;
  background-color: #f4f6f8;
  background-image: none;
}

.loginScreen::before,
.loginScreen::after {
  display: none;
}

.loginLayout {
  width: 100%;
  min-height: 100svh;
  padding: 32px 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loginScreen .loginPanel {
  width: 380px;
  min-height: 0;
  margin: 0;
  padding: 32px 0 24px;
  display: grid;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}

.loginPanel::before {
  display: none;
}

.loginBrand {
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loginBrand img {
  width: 44px;
  height: 44px;
  margin-right: 16px;
  display: block;
  object-fit: contain;
}

.loginBrand h1 {
  position: relative;
  top: 2px;
  margin: 0;
  color: #1f1f1f;
  font-size: 33px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: 0;
}

.loginIntro {
  display: block;
  margin: 0 0 24px;
  text-align: center;
}

.loginIntro p {
  margin: 0;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  line-height: 1.55;
}

.loginModeTabs {
  position: relative;
  height: 44px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}

.loginModeTabs span {
  position: relative;
  height: 44px;
  padding: 0 18px;
  color: #1677ff;
  font-size: 15px;
  font-weight: 500;
  line-height: 42px;
}

.loginModeTabs span::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  background: #1677ff;
  content: "";
}

.loginPanel label {
  position: relative;
  display: block;
  color: #1f1f1f;
}

.loginPanel label > span:first-child:not(.loginInputField) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loginInputField {
  position: relative;
  display: block;
}

.loginFieldIcon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.loginPanel .loginInputField input {
  width: 100%;
  height: 44px;
  padding: 0 42px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.88);
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.loginPanel .loginInputField input:hover {
  border-color: #4096ff;
}

.loginPanel .loginInputField input:focus {
  border-color: #1677ff;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
}

.loginPanel .loginInputField input::placeholder {
  color: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 400;
}

.loginPanel .passwordToggle {
  width: 42px;
  height: 44px;
  color: rgba(0, 0, 0, 0.45);
}

.loginPanel .loginMessage:empty {
  display: none;
}

.ssoLoginButton {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #1677ff;
  border-radius: 6px;
  color: #1677ff;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ssoLoginButton:hover {
  border-color: #4096ff;
  color: #4096ff;
  background: #f5f9ff;
}

.ssoLoginButton svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ssoLoginButton[hidden],
.ssoLoginDivider[hidden] {
  display: none;
}

.ssoLoginDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  white-space: nowrap;
}

.ssoLoginDivider::before,
.ssoLoginDivider::after {
  flex: 1 1 auto;
  height: 1px;
  background: #f0f0f0;
  content: "";
}

.loginPanel .loginSubmit {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 1px solid #1677ff;
  border-radius: 6px;
  color: #fff;
  background: #1677ff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}

.loginPanel .loginSubmit:hover:not(:disabled) {
  border-color: #4096ff;
  background: #4096ff;
  box-shadow: none;
  transform: none;
}

.loginFootnote {
  position: fixed;
  right: 0;
  bottom: 22px;
  left: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  transform: none;
}

@media (min-width: 1800px) {
  .loginScreen .loginPanel {
    width: 440px;
  }

  .loginBrand img {
    width: 48px;
    height: 48px;
  }

  .loginBrand h1 {
    font-size: 36px;
  }

  .loginPanel .loginInputField input,
  .loginPanel .passwordToggle,
  .ssoLoginButton,
  .loginPanel .loginSubmit {
    height: 48px;
  }
}

@media (max-width: 760px) {
  .loginScreen {
    min-height: 100svh;
    background-image: none;
    background-color: #f4f6f8;
  }

  .loginLayout {
    min-height: 100svh;
    padding: 32px 24px 72px;
  }

  .loginScreen .loginPanel {
    width: min(328px, 95%);
    padding: 24px 0;
  }

  .loginBrand h1 {
    font-size: 28px;
  }

  .loginIntro {
    margin-bottom: 32px;
  }

  .loginFootnote {
    bottom: 16px;
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .loginScreen {
    min-height: 600px;
  }

  .loginLayout {
    min-height: 600px;
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .loginScreen .loginPanel {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 12px;
  }

  .loginIntro {
    margin-bottom: 18px;
  }
}
