/* ========================================
   AUTH MODAL POPUP STYLES
   ======================================== */

/* Modal Overlay */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal Content */
.auth-modal-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
    animation: slideUp 0.3s ease;
}

/* Modal Card */
.auth-modal-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Close Button */
.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--auth-text-light);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.auth-modal-close:hover {
    background: var(--auth-bg-light);
    color: var(--auth-text);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .auth-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .auth-modal-card {
        padding: 30px 20px;
    }

    .auth-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
}

/* Alert Container in Modal */
#modal-alert-container {
    margin-bottom: 16px;
}

#modal-alert-container .alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

#modal-alert-container .alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

#modal-alert-container .alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}