*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.login-wrap {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

.login-wrap .left-section {
  flex: 0 0 50%;
  background: #2b59b5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
}

.login-wrap .left-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), transparent);
}

.login-wrap .left-section .system-info {
  color: #fff;
  max-width: 510px;
  width: 100%;
  z-index: 1;
}

.login-wrap .left-section .system-info .system-title {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 48px;
  line-height: 1.4;
  text-align: start;
}

.login-wrap .left-section .system-info .core-values .values-title {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 30px;
  text-align: start;
}

.login-wrap .left-section .system-info .core-values .value-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.login-wrap .left-section .system-info .core-values .value-item .check-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-wrap .left-section .system-info .core-values .value-item .check-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.login-wrap .right-section {
  flex: 0 0 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 24px;
  position: relative;
}

.login-wrap .right-section .login-container {
  width: 100%;
  max-width: 460px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-wrap .right-section .login-container .version {
  position: absolute;
  top: -30px;
  right: 0;
  color: #999;
  font-size: 12px;
}

.login-wrap .right-section .login-container .login-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
  text-align: start;
}

.login-wrap .right-section .login-container .login-subtitle {
  font-size: 14px;
  color: #999;
  margin: 0 0 32px;
  text-align: start;
}

.entry-panel .login-button {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  background: #2b59b5;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.entry-panel .login-button:hover {
  background: #244a96;
}

.entry-panel .help-links {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #999;
}

.entry-panel .help-links a {
  color: #2b59b5;
  text-decoration: none;
  margin-left: 4px;
}

.entry-panel .help-links a:hover {
  text-decoration: underline;
}

.page-footer {
  width: 100%;
  max-width: 460px;
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #999;
}

.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-mask.is-open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-box.modal-wide {
  max-width: 800px;
}

.modal-header {
  padding: 16px 20px 12px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: #2b59b5;
}

.modal-body {
  padding: 10px 20px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #606266;
}

.modal-footer {
  padding: 0 20px 20px;
  text-align: right;
}

.modal-btn {
  min-width: 72px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: #2b59b5;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.modal-btn:hover {
  background: #244a96;
}

.modal-footer-split {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn-secondary {
  background: #f0f2f5;
  color: #606266;
}

.modal-btn-secondary:hover {
  background: #e4e7ed;
}

.password-hint {
  margin: 0 0 16px;
}

.password-field {
  margin: 0;
}

.password-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.password-input:focus {
  border-color: #2b59b5;
}

.password-input.is-error {
  border-color: #f56c6c;
}

.password-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #f56c6c;
}

.password-error[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .login-wrap .left-section {
    flex: 0 0 40%;
    padding: 40px;
  }

  .login-wrap .left-section .system-info .system-title {
    font-size: 28px;
  }

  .login-wrap .left-section .system-info .core-values .values-title {
    font-size: 20px;
  }

  .login-wrap .left-section .system-info .core-values .value-item {
    font-size: 14px;
  }

  .login-wrap .right-section {
    flex: 0 0 60%;
  }
}

@media (max-width: 768px) {
  .login-wrap {
    flex-direction: column;
  }

  .login-wrap .left-section {
    flex: 0 0 auto;
    padding: 30px 20px;
    min-height: 40vh;
  }

  .login-wrap .left-section .system-info .core-values {
    display: none;
  }

  .login-wrap .right-section {
    flex: 1;
    padding: 20px 20px 16px;
  }
}
