/* ========================================
   LOGIN MODAL FOR DESKTOP
   Shows login as popup on desktop, full page on mobile
   ======================================== */

/* Desktop: Show as modal */
@media (min-width: 768px) {
    body.login-page {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        position: relative;
        overflow: hidden;
    }

    body.login-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('../Images/campus.jpg');
        background-size: cover;
        background-position: center;
        opacity: 0.2;
        z-index: 0;
    }

    .login-container {
        position: relative;
        z-index: 10;
        animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(-20px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .login-card {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Close button for modal */
    .login-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    /* Backdrop blur effect */
    body.login-page {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Mobile: Full page (no changes) */
@media (max-width: 767px) {
    .login-close-btn {
        display: none;
    }
}

/* Enhanced animations */
.login-card {
    position: relative;
}

/* Pulse animation for logo */
@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.login-logo {
    animation: logoPulse 2s ease-in-out infinite;
}

/* Smooth transitions */
.login-container * {
    transition: all 0.3s ease;
}