﻿/* Compact Animated Modal */
#msgpopup .modal-dialog {
    margin-top: 5%;
    max-width: 450px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#msgpopup.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

#msgpopup .modal-content {
    background: linear-gradient(135deg, #17a2b8, #28a745);
    color: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: all 0.3s ease;
}

#msgpopup.show .modal-content {
    transform: scale(1);
}

#msgpopup .modal-header {
    border-bottom: none;
    padding: 12px;
}

#msgpopup .close {
    color: white;
    opacity: 1;
    font-size: 24px;
    padding: 0;
    background: rgba(255,255,255,0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    #msgpopup .close:hover {
        transform: rotate(90deg);
        background: rgba(255,255,255,0.2);
    }

#msgpopup .modal-body {
    padding: 25px;
}

.success-check {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    margin: 0 auto 15px;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.6s ease both;
}

    .success-check i {
        color: #28a745;
        font-size: 24px;
    }

.welcome-msg {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.sub-msg {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.credential-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    transform: translateX(-10px);
    opacity: 0;
    animation: fadeInRight 0.4s ease forwards;
}

    .credential-item:nth-child(1) {
        animation-delay: 0.4s;
    }

    .credential-item:nth-child(2) {
        animation-delay: 0.5s;
    }

    .credential-item:nth-child(3) {
        animation-delay: 0.6s;
    }

    .credential-item:nth-child(4) {
        animation-delay: 0.7s;
    }

.credential-icon {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    opacity: 0.8;
}

.security-alert {
    background: rgba(220,53,69,0.15);
    border-left: 3px solid #dc3545;
    padding: 10px 12px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.85rem;
    animation: fadeInUp 0.5s ease 0.8s both;
}

    .security-alert i {
        margin-right: 8px;
    }

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
