* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, rgba(35, 166, 213, 0.55), rgba(35, 213, 171, 0.55), rgba(76, 161, 175, 0.55), rgba(196, 224, 229, 0.55));
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.login-card {
  width: min(92vw, 420px);
  background: rgb(255 255 255 / 60%);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgb(0 0 0 / 20%);
}

.header {
  text-align: center;
  margin-bottom: 26px;
}

.header i {
  font-size: 40px;
  color: #002FA7;
  margin-bottom: 10px;
}

.header h1 {
  color: #333;
  font-size: 24px;
}

#login-form {
  display: grid;
  gap: 14px;
}

.input-group {
  position: relative;
}

.left-icon {
  position: absolute;
  left: 15px;
  top: 14px;
  color: #999;
}

.input-group input {
  width: 100%;
  padding: 12px 45px;
  border: 1px solid #ddd;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  transition: all 0.3s;
}

.input-group input:focus {
  border-color: #23a6d5;
  box-shadow: 0 0 8px rgb(35 166 213 / 20%);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 9px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 17px;
  padding: 4px;
}

.toggle-password:hover {
  color: #e73c7e;
}

.options-panel {
  display: grid;
  gap: 8px;
  color: #555;
  font-size: 14px;
  margin-top: -2px;
}

.options-panel label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#loginBtn {
  width: 100%;
  padding: 13px;
  background: #002FA7;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#loginBtn:hover:enabled {
  background: #23a6d5;
  transform: translateY(-1px);
}

#loginBtn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

#message {
  text-align: center;
  min-height: 20px;
  font-size: 14px;
}

#message.error {
  color: #ff4d4d;
}

#message.success {
  color: #2ecc71;
}

/*强行关闭浏览器自己加入的密码显示按钮*/
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
