/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 页面背景与轮播 */
body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* 本地背景图片 - 请将图片放在images文件夹下 */
.slide:nth-child(1) {
  background-image: url('images/background1.jpg');
}

.slide:nth-child(2) {
  background-image: url('images/background2.jpg');
}

.slide:nth-child(3) {
  background-image: url('images/background3.jpg');
}

.slide:nth-child(4) {
  background-image: url('images/background4.jpg');
}

.slide:nth-child(5) {
  background-image: url('images/background5.jpg');
}

.slide.active {
  opacity: 1;
}

/* 表单容器 */
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* 表单样式 */
.form-box {
  width: 100%;
  max-width: 400px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* 表单动画效果 */
.form-animation {
  animation: formSlide 0.5s ease-out;
}

@keyframes formSlide {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.form-box h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  letter-spacing: 1px;
}

/* 输入框样式 */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 16px;
  z-index: 1;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 15px 15px 15px 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group input::placeholder,
.input-group select::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

/* 密码可见性切换 */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  user-select: none;
}

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

/* 提示文本样式 */
.format-hint,
.password-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  margin-left: 45px;
}

/* 记住我样式 */
.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me input {
  margin-right: 10px;
}

.remember-me label {
  color: #fff;
  font-size: 14px;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 表单链接 */
.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.form-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.form-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* 安全问题区域 */
.security-questions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.security-questions h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
}

/* 消息提示框 */
.message-box {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.message-box.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
}

.message-box.error {
  background: rgba(231, 76, 60, 0.95);
  border-left: 4px solid #e74c3c;
}

.message-box.success {
  background: rgba(46, 204, 113, 0.95);
  border-left: 4px solid #2ecc71;
}

#close-message {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-left: 15px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .form-box {
    padding: 30px 20px;
    margin: 10px;
  }
  
  .form-box h2 {
    font-size: 24px;
  }
  
  .form-links {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .message-box {
    left: 20px;
    right: 20px;
    min-width: auto;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}


  /* 安全问题区域样式补充 */
    .security-questions {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .security-questions h3 {
      color: #fff;
      font-size: 16px;
      margin-bottom: 15px;
      text-align: center;
    }
    
    .security-questions .input-group {
      margin-bottom: 15px;
    }
    
    /* 下拉选择框样式 */
    .input-group select {
      width: 100%;
      padding: 15px 15px 15px 45px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 8px;
      color: #fff;
      font-size: 16px;
      transition: all 0.3s ease;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
    }
    
    .input-group select:focus {
      outline: none;
      border-color: rgba(255, 255, 255, 0.6);
      background: rgba(255, 255, 255, 0.15);
    }
    
    .input-group select option {
      background: #2c3e50;
      color: #fff;
    }
    
    /* 下拉箭头样式 */
    .input-group select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 15px center;
      background-size: 12px;
    }