* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
}

.login-container {
  position: relative;
  width: 100%;
  height: 100vh;
  /*background-image: url("../images/background.png");*/
  /*background-size: cover;*/
  /*background-position: center;*/
  /*background-repeat: no-repeat;*/
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.login-content {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(-80px); /* 使用transform代替margin来调整位置 */
}

.platform-title {
  color: white;
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 30px;
  width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.welcome-text {
  color: #666;
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.input-group {
  text-align: left;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  transition: border-color 0.3s ease;
  height: 45px;
}

.input-wrapper:focus-within {
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.input-icon {
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.input-wrapper:focus-within .input-icon img {
  opacity: 0.8;
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 15px 12px 0;
  font-size: 14px;
  background: transparent;
}

.input-wrapper input::placeholder {
  color: #999;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #4caf50;
  border-color: #4caf50;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.login-btn {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  align-self: flex-end;
  width: auto;
  min-width: 90px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.footer-info {
  color: #ffffff; /* 改为纯白色 */
  font-size: 18px;
  margin-top: 25px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

@media (max-width: 480px) {
  .login-content {
    transform: translateY(-40px);
  }

  .login-box {
    width: 90%;
    padding: 25px 20px;
  }

  .platform-title {
    font-size: 32px; /* 移动端也相应减小 */
    margin-bottom: 25px;
  }

  .footer-info {
    margin-top: 20px;
    font-size: 14px; /* 移动端保持相同大小 */
  }
}

@media (max-width: 400px) {
  .login-box {
    width: 95%;
    padding: 20px 15px;
  }

  .platform-title {
    font-size: 28px; /* 更小屏幕进一步减小 */
  }
}

/* 登录消息样式 */
.login-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideDown 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-message.success {
  background-color: #27ae60;
}

.login-message.error {
  background-color: #e74c3c;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 输入框错误状态 */
.input-wrapper.error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.input-wrapper.error input {
  color: #e74c3c;
}
