﻿

/***************************** Enh Chat 1 ************************/


/* =========================================================
   DESKTOP ENHANCEMENT — PREMIUM ENTERPRISE STYLE
   Coherent with mobile version
   Desktop/tablet only = NO MOBILE REGRESSION
========================================================= */

@media (min-width: 768px) {

    /* ========================================
       1. GLOBAL DESKTOP BACKGROUND
    ======================================== */

    body {
        background: radial-gradient(circle at top left, rgba(108,99,255,0.14), transparent 28%), radial-gradient(circle at bottom right, rgba(58,155,220,0.18), transparent 30%), linear-gradient( 135deg, #eef4ff 0%, #f7faff 35%, #edf5ff 100% );
        overflow: hidden;
    }

        /* Softer animated background wave */
        body::before {
            width: 1600px;
            height: 1600px;
            top: -55%;
            left: -25%;
            background: radial-gradient( circle at center, rgba(255,255,255,0.32), rgba(255,255,255,0.08) 40%, transparent 70% );
            animation: desktop-wave 28s linear infinite;
            opacity: 0.9;
        }

    @keyframes desktop-wave {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* ========================================
       2. LEFT LOGIN SIDE
    ======================================== */

    .registration-bg {
        position: relative;
        background: linear-gradient( 180deg, rgba(255,255,255,0.88) 0%, rgba(248,250,255,0.95) 100% ) !important;
        backdrop-filter: blur(10px);
        overflow: hidden;
        border-right: 1px solid rgba(108,99,255,0.08);
    }

        /* Premium grid overlay */
        .registration-bg::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: linear-gradient(rgba(108,99,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(108,99,255,0.03) 1px, transparent 1px);
            background-size: 32px 32px;
            pointer-events: none;
            z-index: 0;
        }

        /* Soft accent glow */
        .registration-bg::after {
            content: "";
            position: absolute;
            top: -120px;
            left: -120px;
            width: 420px;
            height: 420px;
            border-radius: 50%;
            background: radial-gradient( circle, rgba(108,99,255,0.12), rgba(58,155,220,0.05), transparent 72% );
            filter: blur(10px);
            z-index: 0;
        }

    /* ========================================
       3. LOCAL FLOATING WAVE
    ======================================== */

    .wave {
        width: 220%;
        height: 220%;
        top: -70%;
        left: -70%;
        background: radial-gradient( circle at center, rgba(108,99,255,0.10), rgba(58,155,220,0.06), transparent 68% );
        animation: wave-animation 24s linear infinite;
        opacity: 0.8;
    }

    /* ========================================
       4. LOGIN CARD
    ======================================== */

    .card_2 {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 470px;
        padding: 3rem 2.5rem !important;
        border-radius: 32px !important;
        background: linear-gradient( 180deg, rgba(255,255,255,0.96) 0%, rgba(249,251,255,0.98) 100% ) !important;
        border: 1px solid rgba(255,255,255,0.65);
        box-shadow: 0 30px 80px rgba(31,41,55,0.12), 0 8px 24px rgba(108,99,255,0.08), inset 0 1px 0 rgba(255,255,255,0.9) !important;
        overflow: hidden;
        backdrop-filter: blur(12px);
        transition: transform .3s ease, box-shadow .3s ease;
    }

        .card_2:hover {
            transform: translateY(-4px);
            box-shadow: 0 40px 100px rgba(31,41,55,0.16), 0 10px 30px rgba(108,99,255,0.10), inset 0 1px 0 rgba(255,255,255,0.9) !important;
        }

        /* Top premium gradient bar */
        .card_2::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient( 90deg, #6c63ff 0%, #3A9BDC 45%, #7ad8ff 100% );
        }

        /* Premium floating logo */
        .card_2::after {
            content: "C";
            position: absolute;
            top: 24px;
            right: 24px;
            width: 46px;
            height: 46px;
            border-radius: 14px;
            background: linear-gradient( 135deg, #6c63ff 0%, #3A9BDC 100% );
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.1rem;
            font-weight: 900;
            box-shadow: 0 10px 24px rgba(58,155,220,0.28);
        }

    /* ========================================
       5. TITLES
    ======================================== */

    .title-main {
        font-size: 2.5rem;
        font-weight: 800;
        color: #111827;
        letter-spacing: -0.04em;
        padding-bottom: 0 !important;
        margin-bottom: 0.5rem !important;
    }

        /* Replace yellow underline */
        .title-main::after {
            width: 85px;
            height: 5px;
            border-radius: 999px;
            background: linear-gradient( 90deg, #6c63ff, #3A9BDC );
            bottom: -2px;
        }

    .title-subtitle {
        font-size: 1.05rem;
        color: #64748b;
        font-weight: 500;
        margin-top: 14px;
        margin-bottom: 2.2rem !important;
    }

    /* ========================================
       6. FORM CONTROLS
    ======================================== */

    .form-outline {
        margin-bottom: 1.4rem !important;
    }

    .form-control {
        height: 56px;
        border-radius: 18px !important;
        border: 1.5px solid #dbe4ee !important;
        background: rgba(248,250,252,0.95) !important;
        color: #0f172a !important;
        font-size: 0.96rem;
        font-weight: 500;
        padding-left: 18px;
        padding-right: 46px;
        transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
    }

        .form-control:hover {
            border-color: #c8d5e6 !important;
            background: #ffffff !important;
        }

        .form-control:focus {
            border-color: #6c63ff !important;
            background: #ffffff !important;
            box-shadow: 0 0 0 5px rgba(108,99,255,0.10) !important;
            transform: translateY(-1px);
        }

    .form-outline .form-label {
        color: #64748b !important;
        font-weight: 500;
    }

    .form-outline .form-control:focus ~ .form-label,
    .form-outline .form-control.active ~ .form-label,
    .form-outline .form-control:not(:placeholder-shown) ~ .form-label {
        color: #6c63ff !important;
    }

    /* ========================================
       7. PASSWORD BUTTON
    ======================================== */

    #toggle-password {
        right: 10px !important;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: rgba(108,99,255,0.08) !important;
        transition: background .2s ease, transform .2s ease;
    }

        #toggle-password:hover {
            background: rgba(108,99,255,0.14) !important;
            transform: translateY(-50%) scale(1.04);
        }

    #eye-icon {
        color: #6c63ff !important;
    }

    /* ========================================
       8. BUTTONS
    ======================================== */

    .btn-primary {
        height: 56px;
        border: none !important;
        border-radius: 18px !important;
        background: linear-gradient( 135deg, #6c63ff 0%, #3A9BDC 100% ) !important;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        box-shadow: 0 14px 28px rgba(58,155,220,0.25);
        transition: transform .2s ease, box-shadow .25s ease;
    }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 40px rgba(58,155,220,0.32);
        }

    .btn-outline-secondary {
        height: 54px;
        border-radius: 18px !important;
        border: 1.5px solid #dbe4ee !important;
        background: rgba(255,255,255,0.92) !important;
        color: #334155 !important;
        font-weight: 600;
        transition: all .2s ease;
    }

        .btn-outline-secondary:hover {
            background: #f8fbff !important;
            border-color: #bfd4eb !important;
            transform: translateY(-1px);
        }

    /* ========================================
       9. RIGHT SIDE PANEL
    ======================================== */

    .bg-primary {
        position: relative;
        overflow: hidden;
        background: linear-gradient( 160deg, #0f172a 0%, #132238 45%, #1f3b63 100% ) !important;
    }

        /* Animated glow */
        .bg-primary::before {
            content: "";
            position: absolute;
            top: -180px;
            right: -140px;
            width: 520px;
            height: 520px;
            border-radius: 50%;
            background: radial-gradient( circle, rgba(58,155,220,0.22), rgba(108,99,255,0.10), transparent 72% );
            filter: blur(12px);
            animation: right-glow 12s ease-in-out infinite alternate;
        }

    @keyframes right-glow {
        from {
            transform: translateY(0px) scale(1);
        }

        to {
            transform: translateY(20px) scale(1.08);
        }
    }

    /* Grid overlay */
    .bg-primary::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
        background-size: 32px 32px;
        pointer-events: none;
    }

    /* ========================================
       10. RIGHT SIDE CONTENT
    ======================================== */

    .bg-primary .text-center {
        position: relative;
        z-index: 2;
        max-width: 620px;
        animation: hero-float 6s ease-in-out infinite;
    }

    @keyframes hero-float {
        0%, 100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-8px);
        }
    }

    .title-side {
        font-size: 3rem;
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: -0.04em;
        margin-bottom: 1.5rem !important;
        color: #ffffff;
    }

    .bg-primary .lead {
        font-size: 1.15rem;
        line-height: 1.8;
        color: rgba(255,255,255,0.78);
        max-width: 560px;
        margin: 0 auto;
    }

    /* ========================================
       11. HERO IMAGE
    ======================================== */

    .bg-primary img {
        margin-top: 2.5rem !important;
        border-radius: 28px !important;
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 40px 80px rgba(0,0,0,0.35), 0 10px 30px rgba(58,155,220,0.12);
        transition: transform .4s ease, box-shadow .4s ease;
    }

        .bg-primary img:hover {
            transform: translateY(-6px) scale(1.01);
            box-shadow: 0 50px 100px rgba(0,0,0,0.40), 0 14px 40px rgba(58,155,220,0.16);
        }

    /* ========================================
       12. LINKS / FOOTER
    ======================================== */

    .text-primary.small {
        color: #6c63ff !important;
    }

        .text-primary.small:hover {
            color: #3A9BDC !important;
        }

    .text-muted.small {
        color: #94a3b8 !important;
    }

    /* ========================================
       13. ALERTS
    ======================================== */

    .alert-danger {
        border: none !important;
        border-radius: 18px !important;
        background: linear-gradient( 135deg, rgba(255,82,82,0.10), rgba(255,82,82,0.06) ) !important;
        color: #b42318 !important;
    }
}