/* 基础样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 14px;
  position: relative; /* 为 Logo 定位提供参考 */
}

/* Logo 样式 */
.logo {
  position: absolute; /* 绝对定位 */
  top: 20px; /* 距离顶部 20px */
  left: 20px; /* 距离左侧 20px */
  width: 80px; /* 宽度 */
  height: 70px; /* 高度 */
}

/* 容器样式 */
.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.container h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

/* 表单样式 */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-size: 14px;
  color: #555;
  text-align: left;
  margin-bottom: 5px;
}

form input[type="email"],
form input[type="password"] {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
}

form input[type="email"]:focus,
form input[type="password"]:focus {
  border-color: #007bff;
}

form button {
  padding: 10px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0056b3;
}

/* 链接样式 */
p {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

p a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

p a:hover {
  color: #0056b3;
}

        .error-message {
            color: red; /* 设置错误消息为红色 */
            font-size: 14px;
            margin-top: 10px;
            text-align: center;
        }
        .success-message {
            color: green; /* 设置成功消息为绿色 */
            font-size: 14px;
            margin-top: 10px;
            text-align: center;
        }


/* 验证码容器 */
.captcha-container {
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 垂直居中对齐 */
    gap: 10px; /* 输入框和图片之间的间距 */
    margin-bottom: 20px;
}

/* 验证码输入框 */
#captcha {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px; /* 设置输入框高度 */
    box-sizing: border-box; /* 确保 padding 不影响高度 */
}

/* 验证码图片 */
.captcha-image {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px; /* 设置图片高度 */
}