/* 页面垂直居中包装器，预留头部空间 */
    .login-page {
        min-height: calc(100vh - 140px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 100px 0 60px;
        box-sizing: border-box;
    }

    /* 两栏布局与品牌区样式 */
    .login-layout {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 24px;
        align-items: center;
    }

    .login-left { color: #ffffff; }

    .brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 14px;
        padding: 10px 14px;
        color: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        backdrop-filter: blur(8px);
    }
    .brand i { font-size: 1.2rem; }
    .brand span { font-weight: 900; letter-spacing: -0.02em; }

    .login-left h2 {
        margin-top: 16px;
        font-size: 2rem;
        line-height: 1.3;
        letter-spacing: -0.02em;
        color: #ffffff;
        text-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }
    .login-left p { margin-top: 10px; color: rgba(255,255,255,0.9); }
    .login-highlights { margin-top: 14px; display: grid; gap: 8px; }
    .login-highlights .chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255,255,255,0.14);
        border: 1px solid rgba(255,255,255,0.25);
        color: #fff;
        width: fit-content;
        backdrop-filter: blur(6px);
        font-weight: 600;
        font-size: 0.92rem;
    }

    /* 右侧登录容器在布局中去除外边距 */
    .login-right .login-container { margin: 0; }
    .login-container {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
        width: 100%;
        max-width: 460px;
        border: 1px solid rgba(226, 232, 240, 0.7);
        margin: 100px auto 60px;
        position: relative;
        overflow: hidden;
    }
    .login-container::before {
        content: '';
        position: absolute;
        right: -80px;
        top: -80px;
        width: 240px;
        height: 240px;
        background: radial-gradient(closest-side, rgba(102,126,234,0.16), transparent 70%);
        pointer-events: none;
    }
    .login-container::after {
        content: '';
        position: absolute;
        left: -100px;
        bottom: -100px;
        width: 300px;
        height: 300px;
        background: radial-gradient(closest-side, rgba(118,75,162,0.14), transparent 70%);
        pointer-events: none;
    }

    .login-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .login-header h1 {
        font-size: 2.4rem;
        font-weight: 900;
        background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 12px;
        letter-spacing: -0.02em;
    }

    .login-header p {
        color: #666;
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
    }

    .form-group input {
        width: 100%;
        padding: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        font-size: 1rem;
        transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
        background: #fff;
    }

    .form-group input:focus {
        outline: none;
        border-color: #93c5fd;
        box-shadow: 0 10px 26px rgba(59,130,246,0.15);
        background: #fff;
    }

    .form-group input.error {
        border-color: #e53e3e;
        box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
    }

    .form-group input.success {
        border-color: #38a169;
        box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
    }

    .login-btn {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #3b82f6, #6366f1);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s;
        margin-top: 10px;
    }

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
        background: linear-gradient(135deg, #2563eb, #5b21b6);
        font-weight: 700;
    }

    .form-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
    }

    .form-check {
        display: flex;
        align-items: center;
        margin-bottom: 0;
        justify-content: flex-start;
        width: 20px;
        max-width: fit-content;
    }

    .form-check-input {
        margin-right: 0.5rem;
        width: 16px;
        height: 16px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .form-check-label {
        color: #666;
        font-size: 0.85rem;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
    }

    .form-check-input:checked + .form-check-label {
        color: #667eea;
        font-weight: 600;
    }

    .forgot-password-link {
        margin-left: auto;
    }

    .forgot-password-link a {
        color: #3b82f6;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s;
    }

    .forgot-password-link a:hover {
        color: #6366f1;
    }

    .register-link {
        text-align: center;
        margin-top: 20px;
    }

    .register-link a {
        color: #3b82f6;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s;
    }

    .register-link a:hover {
        color: #6366f1;
    }

    /* 密码可见性切换按钮 */
    .password-field { position: relative; }
    .toggle-password {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: 1px solid #e2e8f0;
        color: #64748b;
        padding: 6px 8px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .toggle-password:hover {
        color: #4338ca;
        border-color: #c7d2fe;
        box-shadow: 0 6px 18px rgba(99,102,241,0.12);
    }

    .forgot-password-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        justify-content: center;
        align-items: center;
    }

    .forgot-password-modal.active {
        display: flex;
    }

    .forgot-password-box {
        background: white;
        border-radius: 20px;
        padding: 40px;
        max-width: 450px;
        width: 90%;
        position: relative;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .forgot-password-box h2 {
        font-size: 1.8rem;
        color: #667eea;
        margin-bottom: 20px;
        text-align: center;
    }

    .forgot-password-box p {
        color: #666;
        margin-bottom: 20px;
        text-align: center;
    }

    .close-modal {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #999;
        cursor: pointer;
        transition: color 0.3s;
    }

    .close-modal:hover {
        color: #667eea;
    }

    .error-message {
        color: #e53e3e;
        font-size: 0.9rem;
        margin-top: 5px;
        display: none;
    }

    .loading {
        display: none;
        text-align: center;
        margin-top: 20px;
    }

    .loading i {
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @media (max-width: 768px) {
        .login-page { 
            padding: 96px 0 48px; 
            min-height: calc(100vh - 180px); 
        }
        
        .login-layout { 
            grid-template-columns: 1fr; 
            gap: 24px;
            padding: 0 16px;
        }
        
        .login-left {
            display: none; /* 手机端隐藏左侧内容 */
        }
        
        .login-right {
            width: 100%;
        }
        
        .login-container {
            margin: 0 auto;
            padding: 30px 22px;
            max-width: 100%;
        }

        .login-header h1 {
            font-size: 1.75rem;
        }
        
        .login-header p {
            font-size: 0.95rem;
        }
        
        .form-group input {
            font-size: 16px; /* 防止iOS自动缩放 */
            padding: 12px;
        }
        
        .password-field input {
            padding-right: 50px; /* 为密码切换按钮留出空间 */
        }
        
        .toggle-password {
            right: 8px;
            padding: 5px 7px;
        }
        
        .form-row {
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .forgot-password-link {
            margin-left: 0;
            width: 100%;
            text-align: right;
        }
        
        .forgot-password-box {
            padding: 30px 20px;
            width: 95%;
            max-width: 95%;
        }
        
        .forgot-password-box h2 {
            font-size: 1.5rem;
        }
        
        .forgot-password-box p {
            font-size: 0.9rem;
        }
    }