/* Smart Login Modal Styles */

#smartLoginModal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#smartLoginModal .modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
}

#smartLoginModal .modal-title {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

#smartLoginModal .modal-body {
    padding: 1.5rem;
}

/* Method Selection */
.smart-login-methods {
    margin-bottom: 2rem;
}

.smart-login-method {
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.smart-login-method:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(38, 158, 173, 0.15);
}

.smart-login-method.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(32, 69, 98, 0.05) 0%, rgba(38, 158, 173, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(32, 69, 98, 0.2);
}

.method-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.method-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.smart-login-method:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
}

.smart-login-method.active .method-icon {
    box-shadow: 0 4px 12px rgba(32, 69, 98, 0.3);
}

.smart-login-method h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.smart-login-method p {
    margin: 0;
    font-size: 0.875rem;
}

/* QR Code Generator */
.qr-generator-container {
    text-align: center;
}

.qr-instructions {
    margin-bottom: 2rem;
}

.qr-instructions .info-box {
    text-align: left;
    padding: 1.25rem;
    background: rgba(38, 158, 173, 0.08);
    border-left: 4px solid var(--primary-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.qr-instructions .info-box i {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.qr-instructions .info-box strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.qr-instructions .info-box p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.qr-code-display {
    position: relative;
    display: inline-block;
    padding: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code-display canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.qr-loading,
.qr-error {
    padding: 2rem;
    color: #6c757d;
}

.qr-loading i,
.qr-error i {
    color: var(--primary-light);
}

.qr-error i {
    color: var(--danger-color);
}

.qr-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.qr-actions .btn {
    min-width: 120px;
}

#qrStatus {
    min-height: 2rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem;
    background: rgba(38, 158, 173, 0.05);
    border-radius: 0.375rem;
    display: inline-block;
}

/* Bluetooth & USB Containers */
.bluetooth-container,
.usb-container {
    padding: 1rem 0;
}

.info-box {
    padding: 1rem;
    background: rgba(38, 158, 173, 0.1);
    border-left: 4px solid var(--primary-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-box i {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 0.125rem;
}

.info-box span {
    color: var(--dark-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.bluetooth-controls .btn,
.usb-controls .btn {
    min-width: 200px;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

#bluetoothStatus,
#usbStatus {
    min-height: 2rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

#bluetoothStatus i,
#usbStatus i {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .smart-login-method {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .method-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .method-icon i {
        font-size: 1.5rem;
    }
    
    .qr-video-wrapper {
        min-height: 250px;
    }
    
    .bluetooth-controls .btn,
    .usb-controls .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.smart-login-method {
    animation: fadeInUp 0.4s ease-out;
}

.smart-login-method:nth-child(1) { animation-delay: 0.1s; }
.smart-login-method:nth-child(2) { animation-delay: 0.2s; }
.smart-login-method:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

