/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform-origin: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
}

.close-modal:hover {
    color: #333;
    transform: rotate(90deg);
}

.modal h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.modal p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
}

.modal-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.modal-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

/* Form in Modal */
#modalLoginForm .form-group {
    margin-bottom: 20px;
}

#modalLoginForm input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

#modalLoginForm input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#modalLoginForm .btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

/* Modal Animations */
.animate__bounceIn {
    animation: bounceIn 0.5s;
}

.animate__bounceOut {
    animation: bounceOut 0.5s;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-height: 600px) {
    .modal-content {
        margin: 5% auto;
    }
}