* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "宋体", sans-serif;
  background: #f1f5f9 url(../templates/images/topbg.jpg) repeat-x;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  width: 420px;
  background: #fff;
  border: 1px solid #e0e3e7;
  box-shadow: 0 2px 12px rgba(16, 83, 153, 0.12);
}

.login-header {
  background: #105399 url(../templates/images/f_bg.jpg) repeat-x;
  padding: 24px 30px;
  text-align: center;
}

.login-header img {
  max-height: 46px;
  margin-bottom: 12px;
}

.login-header h1 {
  color: #fff;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 2px;
}

.login-header p {
  color: #8db0d4;
  font-size: 12px;
  margin-top: 6px;
}

.login-body {
  padding: 30px 36px 36px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  height: 36px;
  border: 1px solid #cdcdcd;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus {
  border-color: #105399;
}

.captcha-row {
  display: flex;
  gap: 10px;
}

.captcha-row input {
  flex: 1;
}

.captcha-code {
  width: 100px;
  height: 36px;
  background: #eee;
  border: 1px solid #cdcdcd;
  text-align: center;
  line-height: 36px;
  font-size: 18px;
  letter-spacing: 4px;
  color: #105399;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  font-family: Arial, sans-serif;
}

.login-btn {
  width: 100%;
  height: 38px;
  background: #105399;
  border: none;
  color: #fff;
  font-size: 15px;
  font-family: "Microsoft YaHei", sans-serif;
  cursor: pointer;
  margin-top: 6px;
}

.login-btn:hover {
  background: #114e8d;
}

.login-btn:disabled {
  background: #89b4df;
  cursor: not-allowed;
}

.error-msg {
  display: none;
  margin-top: 14px;
  padding: 8px 12px;
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  color: #c0392b;
  font-size: 13px;
  text-align: center;
}

.error-msg.show {
  display: block;
}

.login-footer {
  padding: 14px 36px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.login-footer a {
  color: #105399;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.loading-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.loading-mask.show {
  display: flex;
}

.loading-text {
  background: #105399;
  color: #fff;
  padding: 12px 28px;
  font-size: 14px;
}

.server-tip {
  margin-top: 14px;
  padding: 8px 12px;
  background: #f0f7ff;
  border: 1px solid #c5d9ed;
  color: #5a7a9a;
  font-size: 12px;
  line-height: 1.6;
}

.server-tip code {
  background: #e8f0f8;
  padding: 1px 4px;
  color: #105399;
  font-size: 11px;
}
