/**
 * VIP Authentication Modals CSS
 * Glassmorphism design for login modals and error messages
 */

/* Modal Overlay */
.vip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 12, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: vipModalFadeIn 0.3s ease-out;
}

/* Modal Container */
.vip-modal-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(214, 183, 123, 0.25);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: vipModalSlideIn 0.3s ease-out;
}

/* Modal Header */
.vip-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(214, 183, 123, 0.2);
}

.vip-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #D6B77B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vip-modal-close {
    background: none;
    border: none;
    color: rgba(250, 250, 250, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-modal-close:hover {
    color: #D6B77B;
    background: rgba(214, 183, 123, 0.1);
    transform: scale(1.1);
}

/* Modal Content */
.vip-modal-content {
    margin-bottom: 2rem;
}

.vip-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Modal Actions */
.vip-modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vip-modal-actions .vip-auth-submit-btn,
.vip-modal-actions .vip-auth-magic-btn {
    flex: 1;
    min-width: 120px;
}

/* Error Modal Specific Styles */
.vip-error-modal {
    border-color: rgba(239, 68, 68, 0.3);
}

.vip-error-title {
    color: #ef4444;
}

.vip-error-message {
    color: #FAFAFA;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
}

/* Spinner Animation */
.vip-auth-spinner {
    animation: vipSpin 1s linear infinite;
}

@keyframes vipSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal Animations */
@keyframes vipModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes vipModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Success Message Styles */
.vip-auth-message-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    text-align: center;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vip-auth-message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    text-align: center;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 640px) {
    .vip-modal-container {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .vip-modal-title {
        font-size: 1.25rem;
    }
    
    .vip-modal-actions {
        flex-direction: column;
    }
    
    .vip-modal-actions .vip-auth-submit-btn,
    .vip-modal-actions .vip-auth-magic-btn {
        width: 100%;
    }
}

/* Focus States */
.vip-modal-container input:focus {
    outline: none;
    border-color: #D6B77B;
    box-shadow: 0 0 0 3px rgba(214, 183, 123, 0.2);
}

/* Loading State */
.vip-auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.vip-auth-submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}