/* Portal status indicator */
.portal-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.portal-status.show {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

.portal-status i {
    margin-right: 5px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Portal popup overlay */
.portal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.portal-popup-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading indicator for portal */
.portal-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success message for portal login */
.portal-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    display: none;
    text-align: center;
    min-width: 300px;
}

.portal-success-message.show {
    display: block;
    animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.portal-success-message i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.portal-success-message h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.portal-success-message p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive styles */
@media (max-width: 768px) {
    .portal-status {
        position: static;
        margin: 10px;
        text-align: center;
    }
    
    .portal-success-message {
        margin: 20px;
        min-width: auto;
        max-width: calc(100% - 40px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-button.customer-portal {
        background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    }
    
    .portal-status {
        background: rgba(90, 103, 216, 0.9);
    }
}
