/* 登录弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #333; /* 确保文字为深灰色，更好的对比度 */
}

.modal-content h2 {
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.modal-content .form-group label {
    color: #333;
    font-weight: bold;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.auth-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    height: 40px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.remember-me label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.btn {
    background-color: #1976d2;
    color: white;
    height: 40px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    min-width: 80px; /* 确保按钮最小宽度 */
    box-sizing: border-box; /* 确保padding不影响宽度 */
    transition: background-color 0.3s ease; /* 平滑过渡效果 */
}

.btn:hover {
    background-color: #1565c0;
}

.btn:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.auth-links {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #1976d2;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
