.login-main {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(126, 87, 255, 0.1), rgba(255, 127, 80, 0.1));
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 3rem;
    border: 2px solid rgba(126, 87, 255, 0.2);
    border-radius: 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(126, 87, 255, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 0.5rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-color);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(126, 87, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-error {
    background: #FEE2E2;
    color: #EF4444;
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.login-btn {
    width: 100%;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 87, 255, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-color);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .login-box {
        background: var(--dark-color);
    }

    .login-box h2 {
        color: var(--light-color);
    }

    .form-group input {
        background: var(--dark-color);
        color: var(--light-color);
    }

    .form-error {
        background: rgba(239, 68, 68, 0.2);
    }
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .login-main {
        padding: 1rem;
    }

    .login-box {
        padding: 1.5rem;
    }

    .login-box h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-group input {
        height: 44px;
        font-size: 0.95rem;
    }

    .login-btn {
        height: 44px;
        font-size: 1rem;
    }
} 