/* Modal Login Component Styles */

/* Base Modal Styles */
.modal-login-container {
    position: relative;
    width: 100%;
}

.modal-login-trigger {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-login-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Content Enhancements */
.modal-login .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.modal-login .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 24px;
    text-align: center;
}

.modal-login .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-login .modal-description {
    opacity: 0.9;
    font-size: 0.95rem;
    margin: 0;
}

.modal-login .modal-body {
    padding: 32px 24px;
    background: #ffffff;
}

.modal-login .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Form Styles */
.modal-login-form .form-group {
    margin-bottom: 20px;
}

.modal-login-form .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.modal-login-form .form-control {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.modal-login-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.modal-login-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.modal-login-form .form-check-input {
    margin: 0;
}

.modal-login-form .form-check-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Button Styles */
.modal-login .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-login .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-login .btn-secondary {
    background: #6b7280;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.modal-login .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Device Indicator */
.device-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1060;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-indicator .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.device-indicator.desktop .indicator-dot {
    background: #3b82f6;
}

.device-indicator.mobile .indicator-dot {
    background: #10b981;
}

/* Mobile Drawer Styles */
@media (max-width: 768px) {
    .modal-login.mobile-drawer .modal-dialog {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: none;
        height: auto;
        max-height: 80vh;
    }
    
    .modal-login.mobile-drawer .modal-content {
        border-radius: 20px 20px 0 0;
        margin-bottom: 0;
    }
    
    .modal-login.mobile-drawer .modal-header {
        position: relative;
        padding-top: 32px;
    }
    
    .modal-login.mobile-drawer .modal-header::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .modal-login.mobile-drawer .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Animation Enhancements */
.modal-login.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal-login.show .modal-dialog {
    transform: translate(0, 0);
}

/* Loading State */
.modal-login-form.loading .btn-primary {
    position: relative;
    color: transparent;
}

.modal-login-form.loading .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success/Error States */
.modal-login-form .alert {
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border: none;
}

.modal-login-form .alert-success {
    background: #d1fae5;
    color: #065f46;
}

.modal-login-form .alert-danger {
    background: #fee2e2;
    color: #991b1b;
}
