* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-container {
    display: flex;
    width: 700px;
    max-width: 95vw;
    height: 500px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.login-brand h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.login-brand p {
    font-size: 1rem;
    opacity: 0.9;
}

.login-form-wrapper {
    flex: 1;
    padding: 3rem;
    display: flex;
    align-items: center;
}

#loginForm {
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 密码框带眼睛图标 */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1rem;
    color: #999;
    user-select: none;
}

.toggle-password:hover {
    color: #555;
}

#loginBtn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

#loginBtn:hover {
    background: #5a6fd8;
}

#loginBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.forgot-password {
    text-align: right;
    margin: 0rem 0 0.5rem;
}

    .forgot-password a {
        font-size: 0.7rem;
        color: #667eea;
        text-decoration: none !important; /* 添加 !important */
    }

        .forgot-password a:hover {
            text-decoration: none !important; /* 添加 !important */
        }

.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert.d-none {
    display: none;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式：小屏下堆叠显示 */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        max-width: 400px;
    }

    .login-brand {
        padding: 1.5rem;
    }

    .login-brand h2 {
        font-size: 1.5rem;
    }

    .login-form-wrapper {
        padding: 2rem;
    }
}

/* 超小屏优化 */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .login-container {
        margin: 1rem;
    }

    #loginForm {
        font-size: 14px;
    }

    .form-group input,
    #loginBtn {
        font-size: 1rem;
    }
}

.copyright-section {
    margin-top: 1.8rem; /* 足够的间距 */
    font-size: 1rem; /* 可选：微调字体大小 */
}