/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 背景样式 */
.login-bg {
  background: linear-gradient(135deg, #0d47a1, #42a5f5);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* 玻璃态卡片 */
.glassmorphism {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* 登录卡片 */
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  text-align: center;
}

/* 登录LOGO */
.login-logo {
  margin-bottom: 20px;
}

.login-logo h2 {
  color: white;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 500;
}

/* 表单样式 */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.input-group input:focus {
  background: white;
  box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.5);
}

.input-group .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

/* 验证码组 */
.captcha-group {
  display: flex;
  gap: 10px;
}

.captcha-group input {
  flex: 1;
  padding-left: 15px;
}

.captcha-img {
  height: 44px;
  border-radius: 5px;
  cursor: pointer;
}

/* 密码显示切换 */
.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url('../../assets/icons/eye.svg') no-repeat center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.toggle-pw:hover {
  opacity: 1;
}

/* 选项样式 */
.options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: white;
}

.options label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.options input[type="checkbox"] {
  margin-right: 5px;
}

/* 按钮样式 */
.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background: #1976d2;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-btn:hover {
  background: #1565c0;
}

/* 错误消息 */
.error-message {
  background: rgba(244, 67, 54, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: left;
}

/* 页脚 */
footer {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .login-card {
    padding: 20px;
  }
  
  .login-logo h2 {
    font-size: 1.2rem;
  }
} 