/**
 * 登录页面自定义样式
 * 包含布局、工具栏、轮播图特效和密码眼睛图标样式
 */

/* 主布局 */
.login-page {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
}

/* 左侧轮播图 */
.banner-container {
    width: 70vw;
    min-width: 70vw;
    max-width: 70vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    background: #000;
    z-index: 1;
}

#loginCarousel,
.carousel,
.carousel-inner,
.carousel-item {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.5);
}

.carousel-indicators button.active {
    background-color: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 20px;
}

/* 轮播图特色网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.feature-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* 第二张：订单管理功能列表 */
.features-list {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
    max-width: 600px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-list span {
    color: white;
}

/* 第三张：AI功能卡片 */
.ai-features {
    max-width: 400px;
    margin-top: 20px;
}

.ai-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.ai-feature-card i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.ai-feature-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 第四张：库存分析卡片 */
.analytics-features {
    max-width: 500px;
    margin-top: 20px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.analytics-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.analytics-card i {
    font-size: 2rem;
}

.analytics-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.analytics-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 右侧登录区域 */
.login-container {
    width: 30vw;
    min-width: 30vw;
    max-width: 30vw;
    height: 100vh;
    position: relative;
    right: 0;
    top: 0;
    margin: 0;
    padding: 0;
    background: white;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-content {
    width: 100%;
    max-width: 420px;
    height: 100%;
    padding: 2.5rem;
    background: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo区域 */
.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    flex-shrink: 0;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.2rem;
}

.logo-text .tagline {
    font-size: 0.9rem;
    color: #666;
}

/* 密码输入框容器样式（眼睛图标定位） */
.password-container {
    position: relative;
}

.password-container .form-control {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle i {
    font-size: 1.1rem;
}

/* 忘记密码链接 */
.forgot-password {
    text-align: right;
    margin-bottom: 2rem;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* 注册链接 */
.register-link {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 版权信息 */
.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 右侧悬浮工具栏 */
.fixed-toolbar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toolbar-item {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.toolbar-item i {
    font-size: 20px;
    color: #4caf50;
}

.toolbar-item:hover {
    background: #4caf50;
    transform: scale(1.05);
}

.toolbar-item:hover i {
    color: white;
}

.toolbar-popup {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.toolbar-item:hover .toolbar-popup {
    opacity: 1;
    visibility: visible;
}

.toolbar-popup p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.toolbar-popup img {
    width: 150px;
    height: 150px;
    display: block;
    margin-bottom: 8px;
    border-radius: 8px;
}

/* 响应式 */
@media (max-width: 991.98px) {
    .login-page {
        flex-direction: column;
    }
    
    .banner-container {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        height: 40vh;
        min-height: 300px;
    }
    
    .login-container {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        height: auto;
        min-height: 60vh;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .login-content {
        padding: 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .fixed-toolbar {
        bottom: 80px;
        right: 10px;
    }
    
    .toolbar-item {
        width: 40px;
        height: 40px;
    }
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .features-list {
        padding: 20px;
        max-width: 90%;
    }
    
    .ai-features,
    .analytics-features {
        max-width: 90%;
    }
    
    .analytics-card i {
        font-size: 1.5rem;
    }
    
    .analytics-title {
        font-size: 0.95rem;
    }
    
    .analytics-desc {
        font-size: 0.8rem;
    }
}