/* 全局样式重置 */
 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 新增：欢迎文本样式 */
.welcome-text {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 28px;
    /* 可根据需要调整与登录卡片的间距等，比如再加 margin-top 等 */
}

body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column; /* 让欢迎文本和登录卡片垂直排列 */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 登录卡片容器 - 添加了透明蓝色背景 */
.login-card {
    /* 透明蓝色背景，rgba最后一位为透明度(0-1) */
    background-color: rgba(0, 123, 255, 0.1);
    width: 328px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    text-align: center;
    /* 可选：添加淡蓝色边框增强效果 */
    border: 1px solid rgba(0, 123, 255, 0.2);
    /* 给说明文字留出上方间距 */
  margin-bottom: 20px;
}

/* 说明文字容器（紧贴登录框） */
.instruction-text {
  text-align: center;
  color: #666;
  line-height: 1.6;
  /* 去掉 margin-top: auto，改为和登录框的间距 */
  margin-top: 0;
  /* 可选：调整行高或颜色 */
}

/* 标题样式 */
.login-card h2 {
    font-size: 20px;
    margin-bottom: 24px;
}

/* 表单组通用样式 */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    text-align: left;
}

/* 标签样式 */
.form-group label {
    width: 158px;            /* 固定标签宽度 */
    text-align: right;      /* 文字右对齐 */
    margin-right: 12px;     /* 与输入框间距 */
    font-size: 15px;
    color: #333;
}

/* 输入框通用样式 */
.form-group input {
    flex: 1;                /* 输入框占满剩余空间 */
    padding: 10px 34px 10px 10px; /* 右侧预留图标空间 */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* 密码输入框容器（控制图标位置） */
.password-input {
    position: relative;
    flex: 1;                /* 继承flex布局 */
}

/* 小眼睛图标样式（完全在密码框内） */
.password-input .eye-icon {
    position: absolute;
    right: 10px;            /* 距离输入框右侧10px */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 2;             /* 确保图标在输入框上方 */
    font-size: 16px;       /* 图标大小 */
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 58px;
    margin: 20px 0;
}

.btn-group button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background-color: #ffc107;
    color: #333;
}

.reset-btn:hover {
    background-color: #e0a800;
}

.login-btn {
    background-color: #007bff;
    color: #fff;
}

.login-btn:hover {
    background-color: #0056b3;
}

/* 底部链接样式 */
.link-group {
    font-size: 14px;
    color: #666;
}

.link-group a {
    color: #dc3545;
    text-decoration: none;
    margin: 0 4px;
}

.link-group a:hover {
    text-decoration: underline;
}

/* 错误提示样式 */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: -14px;
    margin-left: 92px; /* 与标签宽度对齐 */
    text-align: left;
    height: 16px;
}
#login-error {
    color: #dc3545;
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
}
/* 新增：禁用状态按钮样式（如果CSS中没有定义） */
        .login-btn:disabled {
            background-color: #6c757d;
            cursor: not-allowed;
            opacity: 0.8;
        }
/* ==============记住密码选项样式============ */
.remember-group {
    width: 188px;
    display: flex;
    align-items: center;
    gap: 8px;
     margin: 0 auto; /* 关键：左右自动边距，实现水平居中 */
    cursor: pointer;

}

.remember-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4096ff; /* 复选框选中颜色，与登录按钮对齐 */
}

.remember-label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}