/* ==============================
   Iqra Wartqi Popup CSS
   ============================== */

:root {
    --primary: #234e52;
    --secondary: #7f1102;
    --third: #d4a373;
    --fourth: #a3be8c;
    --light: #f8f5f0;
    --dark: #0d2c3a;
    --popup-overlay: rgba(13, 44, 58, 0.85);
}

/* Overlay */
#iw-protected-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--popup-overlay);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s ease forwards;
}

/* Inner Box */
#iw-protected-popup .iw-popup-inner {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    max-width: 550px;
    width: 100%;
    text-align: center;
    animation: scaleIn 0.4s ease forwards;
    position: relative;
}

/* Heading */
#iw-protected-popup h2 {
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
    color: var(--primary);
    font-weight: bold;
    font-family: 'Philosopher', sans-serif;
}

/* Tabs */
#iw-protected-popup .iw-tabs {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}
#iw-protected-popup .iw-tabs button {
    padding: 10px 20px;
    border: none;
    background: var(--third);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Philosopher', sans-serif;
}
#iw-protected-popup .iw-tabs button.active {
    background: var(--secondary);
}
#iw-protected-popup .iw-tabs button:hover {
    background: var(--primary);
}

/* UM Forms inside popup */
#iw-protected-popup .um {
    text-align: left;
}
#iw-protected-popup .um-field-label {
    font-weight: bold;
    color: var(--primary);
    font-family: 'Philosopher', sans-serif;
}
#iw-protected-popup .um-field-area input {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Philosopher', sans-serif;
    background: #f8fafc;
    transition: all 0.3s;
}
#iw-protected-popup .um-field-area input:focus {
    border-color: var(--third);
    box-shadow: 0 0 8px rgba(212, 163, 115, 0.4);
}

/* Buttons */
#iw-protected-popup .um-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}
#iw-protected-popup .um-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--third) 0%, var(--secondary) 100%);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Fade In Animation */
#iw-auth-modal.fade-in .iw-auth-content {
    animation: popupFade 0.3s ease-in-out;
}

@keyframes popupFade {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Responsive */
@media (max-width: 600px) {
    #iw-protected-popup .iw-popup-inner {
        padding: 1.5rem;
    }
    #iw-protected-popup h2 {
        font-size: 1.3rem;
    }
}
