/* ========================================================================== */
/* MODAL LANDING PAGE - LEGALIZY AI */
/* ========================================================================== */

/* ========================================================================== */
/* 1. MODAL OVERLAY AND CONTAINER */
/* ========================================================================== */

.modal-landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================================================== */
/* 2. DEMO AGENT BACKGROUND */
/* ========================================================================== */

.demo-agent-background {
    filter: brightness(0.7) blur(1px);
    pointer-events: none;
    user-select: none;
    position: relative;
}

.demo-agent-background * {
    pointer-events: none !important;
}

/* Hide scrollbars for demo */
.demo-agent-background *::-webkit-scrollbar {
    display: none;
}

.demo-agent-background * {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================================================== */
/* 3. PREVIEW BADGE */
/* ========================================================================== */

.preview-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

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

/* ========================================================================== */
/* 4. DEMO INTERFACE STYLES */
/* ========================================================================== */

.demo-message {
    opacity: 0.8;
}

.demo-sidebar {
    opacity: 0.6;
}

.demo-chat-header {
    opacity: 0.7;
}

/* ========================================================================== */
/* 5. MODAL HEADER */
/* ========================================================================== */

.auth-modal header {
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.auth-modal .logo-wrapper img {
    max-height: 60px;
    width: auto;
}

/* ========================================================================== */
/* 6. MODAL MAIN CONTENT */
/* ========================================================================== */

.auth-modal main {
    min-height: 300px;
    width: 100%;
}

.auth-modal .auth-content {
    padding: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================================================== */
/* 7. AUTH TOGGLE SECTION */
/* ========================================================================== */

.auth-modal .auth-toggle {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.auth-modal .auth-toggle button {
    background: none;
    border: none;
    color: #2b59ff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: "DM Sans";
}

.auth-modal .auth-toggle button:hover {
    color: #1a3cff;
    background: rgba(43, 89, 255, 0.1);
    text-decoration: none;
}

/* ========================================================================== */
/* 8. MOBILE RESPONSIVENESS */
/* ========================================================================== */

@media (max-width: 576px) {
    .auth-modal {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }

    .auth-modal .auth-content {
        padding: 15px;
    }

    .auth-modal main {
        min-height: 250px;
    }

    .preview-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .demo-agent-background .d-lg-none .container-fluid {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .modal-landing-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }

    .auth-modal {
        margin-top: 20px;
    }
}

/* ========================================================================== */
/* 9. BUTTON EFFECTS */
/* ========================================================================== */

.auth-modal .btn-primary {
    transition: all 0.3s ease;
}

.auth-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 89, 255, 0.3);
}

.auth-modal .btn-primary:active {
    transform: translateY(0);
}
