* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", Arial, sans-serif;
}
body {
    min-height: 100vh;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 0.8rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
/* 小标题 */
.sub-title {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-top: 5px;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}
.remember-me input {
    width: auto;
}
.btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0.8rem;
}
.btn-login {
    background-color: #2f3942;
    color: #fff;
}
.btn-login:hover {
    background-color: #51606f;
    color: #fff;
}
.forgot-pwd {
    display: block;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.forgot-pwd:hover {
    text-decoration: underline;
}
.btn-request {
    background-color: #ffc107;
    color: #212529;
    outline: none; /* 清除浏览器默认焦点外框（可选，按你的视觉需求） */
}
.btn-request:hover {
    background-color: #e0a800;
}
/* 强制焦点状态下保持橙色背景 */
.btn-request:focus {
    background-color: #ffc107;
    color: #212529;
}
.success-tip {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
}
.error-tip {
    color: #dc3545;
    background: #f8d7da;
    padding: 0.7rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}
.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 1.5rem;
}

/* 弹窗相关样式（优化版） */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* 半透明遮罩 */
    display: flex; /* 固定为flex，通过opacity控制显示隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 999; /* 层级高于登录框 */
    opacity: 0; /* 默认透明 */
    visibility: hidden; /* 默认隐藏 */
    transition: all 0.3s ease; /* 过渡动画 */
}
/* 弹窗激活状态（缓下出现） */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px); /* 初始向下偏移 */
    transition: transform 0.3s ease; /* 位移过渡 */
}
/* 弹窗激活时缓下到位 */
.modal-overlay.active .modal-box {
    transform: translateY(0);
}
/* 放大标题和关闭按钮 */
.modal-header {
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px; /* 固定头部高度，确保垂直居中 */
}
.modal-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1; /* 强制标题行高与文字高度一致，消除底部空隙 */
    margin: 0; /* 清除默认margin，确保居中 */
}
.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 2.2rem; /* 进一步放大X按钮 */
    cursor: pointer;
    color: #666;
    padding: 0.2rem 0.6rem; /* 同步扩大点击区域 */
    line-height: 1;
    transform: translateY(-2px); /* 微调X按钮垂直位置，与标题更居中 */
}
.modal-close-btn:hover {
    color: #000;
}
.modal-body {
    padding: 1.8rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}
.modal-subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}
.modal-body a {
    color: #007bff;
    text-decoration: none;
}
.modal-body a:hover {
    text-decoration: underline;
}
.modal-footer {
    padding: 1.2rem 1.8rem;
    border-top: 1px solid #eee;
    text-align: right;
}
.modal-footer .modal-close-btn {
    background: #6c757d;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 1.05rem; /* 底部关闭按钮字体放大 */
}
.modal-footer .modal-close-btn:hover {
    background: #5a6268;
    color: #fff;
}