/* Wincos Login Page Styles - Using SCSS Variables */
.wincos-login-container {
    background: linear-gradient(135deg, #475569 0%, #64748b 25%, #94a3b8 50%, #cbd5e1 75%, #e2e8f0 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.wincos-login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="pattern" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes logoRing {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 20px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 30px rgba(255,255,255,0.2); }
}

.login-card {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 520px;
    height: auto;
}

.login-card .row {
    height: 100%;
    min-height: 520px;
}

.login-left {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 100%;
    min-height: 100%;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="400" height="250" xmlns="http://www.w3.org/2000/svg"><path d="M60 160 L340 160 L330 130 L300 100 L280 90 L120 90 L100 100 L70 130 Z" fill="white" opacity="0.1"/><rect x="130" y="95" width="50" height="40" fill="white" rx="5" opacity="0.1"/><rect x="190" y="95" width="50" height="40" fill="white" rx="5" opacity="0.1"/><rect x="250" y="95" width="35" height="40" fill="white" rx="5" opacity="0.1"/><circle cx="110" cy="170" r="20" fill="white" opacity="0.1"/><circle cx="290" cy="170" r="20" fill="white" opacity="0.1"/></svg>') no-repeat center;
    background-size: 80%;
    opacity: 0.3;
    z-index: 1;
}

.logo-section {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-bg-circle {
    animation: logoGlow 4s ease-in-out infinite;
}

.logo-ring {
    border-image: linear-gradient(45deg, rgba(255,255,255,0.6), rgba(255,255,255,0.1), rgba(255,255,255,0.6)) 1;
}

.logo-title {
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.main-video-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-video:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.brand-description {
    position: relative;
    z-index: 3;
    text-align: center;
}

.brand-subtitle {
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.5);
}

.brand-detail {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.login-right {
    padding: 2rem;
    background: #ffffff;
}

.form-floating {
    position: relative;
    margin-bottom: 1.2rem;
}

.form-floating .form-control {
    height: 52px;
    padding: 0.9rem 0.7rem 0.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 15px;
}

.form-floating .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.15rem rgba(79, 70, 229, 0.15);
    background: #ffffff;
}

.form-floating label {
    padding: 0.9rem 0.7rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.btn-wincos {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    font-weight: 800 !important;
    font-size: 16px;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-wincos i {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-wincos::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-wincos:hover::before {
    left: 100%;
}

.btn-wincos:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
}

.btn-wincos:hover i {
    color: #ffffff !important;
}

.btn-wincos:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.6);
    color: #ffffff !important;
}

.btn-wincos:active i {
    color: #ffffff !important;
}

.btn-wincos:focus {
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.6);
}

.btn-wincos:focus i {
    color: #ffffff !important;
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
}

.error-alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.copyright {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .login-left {
        padding: 1.8rem 1.3rem;
        min-height: 380px;
    }
    
    .login-right {
        padding: 1.8rem 1.3rem;
    }
    
    .logo-section .logo-bg-circle {
        width: 130px !important;
        height: 130px !important;
    }
    
    .logo-section .logo-ring {
        width: 130px !important;
        height: 130px !important;
    }
    
    .logo-section .wincos-logo-compact {
        max-width: 95px !important;
    }
    
    .logo-title {
        font-size: 1.1rem !important;
    }
    
    .main-video {
        max-width: 280px !important;
    }
    
    .brand-subtitle {
        font-size: 0.95rem !important;
    }
    
    .brand-detail {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .wincos-login-container {
        padding: 0.8rem;
    }
    
    .login-card {
        border-radius: 12px;
    }
    
    .login-left,
    .login-right {
        padding: 1.3rem;
    }
    
    .login-left {
        min-height: 320px;
    }
    
    .logo-section {
        margin-bottom: 1rem !important;
    }
    
    .logo-section .logo-bg-circle {
        width: 110px !important;
        height: 110px !important;
    }
    
    .logo-section .logo-ring {
        width: 110px !important;
        height: 110px !important;
    }
    
    .logo-section .wincos-logo-compact {
        max-width: 80px !important;
    }
    
    .logo-title {
        font-size: 1rem !important;
        margin-top: 0.5rem !important;
    }
    
    .main-video-container {
        margin-bottom: 1rem !important;
    }
    
    .main-video {
        max-width: 240px !important;
        border-radius: 15px !important;
    }
    
    .brand-subtitle {
        font-size: 0.9rem !important;
    }
    
    .brand-detail {
        font-size: 0.8rem !important;
    }
    
    .form-floating .form-control {
        height: 48px !important;
        font-size: 14px !important;
    }
    
    .btn-wincos {
        padding: 0.7rem 1.5rem !important;
        font-size: 15px !important;
    }
}