/* 优选商城 - 登录页面样式 */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    display: flex;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

/* 左侧装饰区域 */
.login-decoration {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
}

.decoration-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?w=800&h=1200&fit=crop') center/cover;
    opacity: 0.15;
}

.decoration-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.decoration-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.decoration-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.decoration-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 32px;
    opacity: 0.9;
}

.feature-item span {
    font-size: 14px;
    opacity: 0.8;
}

/* 右侧登录表单 */
.login-form-wrapper {
    flex: 1;
    padding:40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray-color);
    font-size: 14px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--gray-color);
    font-size: 16px;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

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

.form-input::placeholder {
    color: var(--gray-color);
}

/* 去掉输入框自动填充的背景色 */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: var(--dark-color) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-input {
    background-color: #fff !important;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    z-index: 1;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-color);
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border-radius: 3px;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary-color);
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* 登录底部 */
.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-color);
    font-size: 14px;
}

.login-footer span {
    margin-right: 8px;
}

.register-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.register-link:hover {
    color: var(--secondary-color);
}

/* 社交登录 */
.social-login {
    margin-top: 40px;
}

.social-divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.social-divider::before,
.social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.social-divider::before {
    left: 0;
}

.social-divider::after {
    right: 0;
}

.social-divider span {
    background: #fff;
    padding: 0 15px;
    color: var(--gray-color);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wechat-btn {
    color: #07c160;
    border-color: #07c160;
}

.wechat-btn:hover {
    background: #07c160;
    color: #fff;
}

.qq-btn {
    color: #12b7f5;
    border-color: #12b7f5;
}

.qq-btn:hover {
    background: #12b7f5;
    color: #fff;
}

.weibo-btn {
    color: #e6162d;
    border-color: #e6162d;
}

.weibo-btn:hover {
    background: #e6162d;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        min-height: auto;
    }

    .login-decoration {
        padding: 40px 20px;
        min-height: 200px;
    }

    .decoration-title {
        font-size: 32px;
    }

    .decoration-subtitle {
        font-size: 16px;
    }

    .decoration-features {
        display: none;
    }

    .login-form-wrapper {
        padding: 40px 30px;
    }

    .login-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .login-form-wrapper {
        padding: 30px 20px;
    }

    .form-input {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }

    .login-btn {
        padding: 14px;
        font-size: 15px;
    }
}
