        /* ----- ROOT VARIABLES (refined) ----- */
        :root {
            --primary: #0d6efd;
            --primary-dark: #0a58ca;
            --secondary: #6f42c1;
            --accent: #20c997;
            --light: #f8f9fa;
            --dark: #1e2329;
            --text-muted: #6c757d;
            --border-radius: 24px;
            --shadow-card: 0 20px 60px -12px rgba(0, 0, 0, 0.15);
            --transition: all 0.25s ease-in-out;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
        }

        body {
            background: radial-gradient(circle at 10% 30%, #e9f0ff 0%, #f5edfa 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        /* ----- MAIN CARD ----- */
        .mexus-card {
            width: 100%;
            max-width: 1320px;
            background: #ffffff;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-card);
            display: flex;
            overflow: hidden;
            min-height: 720px;
            transition: var(--transition);
        }

        /* ----- LEFT PANEL (image / brand) ----- */
        .panel-brand {
            flex: 7;
            background: linear-gradient(145deg, rgba(13, 110, 253, 0.06), rgba(111, 66, 193, 0.08)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><rect fill="%23f0f5ff" width="800" height="600"/><circle cx="200" cy="180" r="140" fill="%23d4e2ff" opacity="0.3"/><circle cx="600" cy="400" r="180" fill="%23e1d5f5" opacity="0.25"/><path d="M0 450 L200 350 L400 420 L600 320 L800 400 L800 600 L0 600Z" fill="%23ffffff" opacity="0.5"/><path d="M120 220 Q240 120 380 200 Q520 280 660 180 L660 280 Q520 380 380 300 Q240 220 120 320Z" fill="%23d9e6ff" opacity="0.2"/></svg>') center/cover no-repeat;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px 48px;
            position: relative;
            color: var(--dark);
        }

            .panel-brand .brand-content {
                text-align: center;
                z-index: 2;
                max-width: 90%;
                backdrop-filter: blur(2px);
                padding: 20px 30px;
                border-radius: 40px;
                background: rgba(255,255,255,0.3);
                box-shadow: 0 8px 32px rgba(0,0,0,0.02);
            }

        .brand-content h2 {
            font-weight: 700;
            font-size: 2.6rem;
            letter-spacing: -0.02em;
            color: #0b1e33;
            margin-bottom: 16px;
        }

            .brand-content h2 span {
                background: linear-gradient(135deg, var(--primary), var(--secondary));
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
            }

        .brand-content p {
            font-size: 1.15rem;
            color: #1e2b3c;
            opacity: 0.8;
            max-width: 380px;
            margin: 0 auto 24px;
            line-height: 1.5;
        }

        .feature-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 18px 28px;
            margin-top: 16px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255,255,255,0.6);
            backdrop-filter: blur(8px);
            padding: 10px 22px 10px 16px;
            border-radius: 60px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.02);
            border: 1px solid rgba(255,255,255,0.3);
            font-weight: 500;
            color: #1a2634;
        }

            .feature-item i {
                width: 34px;
                height: 34px;
                background: linear-gradient(145deg, var(--primary), var(--secondary));
                color: white;
                border-radius: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1rem;
                box-shadow: 0 6px 14px rgba(13,110,253,0.25);
            }

        /* small decorative */
        .brand-deco {
            position: absolute;
            bottom: 20px;
            right: 30px;
            font-size: 0.8rem;
            color: rgba(0,0,0,0.15);
            letter-spacing: 4px;
            font-weight: 300;
        }

        /* ----- RIGHT PANEL (forms) ----- */
        .panel-form {
            flex: 3.2;
            padding: 48px 40px;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow-y: auto;
        }

        .form-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 36px;
        }

            .form-header img {
                height: 52px;
                width: auto;
            }

            .form-header .brand-text {
                font-weight: 700;
                font-size: 1.6rem;
                letter-spacing: -0.02em;
                color: #0b1e33;
            }

                .form-header .brand-text small {
                    font-weight: 400;
                    font-size: 0.7rem;
                    color: var(--text-muted);
                    display: block;
                    margin-top: -2px;
                }

        .form-title {
            font-weight: 700;
            font-size: 1.8rem;
            margin-bottom: 22px;
            letter-spacing: -0.02em;
            color: #0b1e33;
            position: relative;
        }

            .form-title:after {
                content: '';
                display: block;
                width: 48px;
                height: 4px;
                background: linear-gradient(90deg, var(--primary), var(--secondary));
                border-radius: 6px;
                margin-top: 10px;
            }

        .form-switch {
            display: none;
            animation: fadeSlide 0.4s ease-out;
        }

            .form-switch.active {
                display: block;
            }

        @keyframes fadeSlide {
            0%

        {
            opacity: 0;
            transform: translateY(12px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }

        }

        .form-group {
            margin-bottom: 22px;
            position: relative;
        }

        .form-control {
            border-radius: 16px;
            padding: 14px 18px;
            border: 2px solid #eef1f4;
            font-size: 0.95rem;
            background: #f9fafc;
            transition: var(--transition);
            box-shadow: none;
        }

            .form-control:focus {
                border-color: var(--primary);
                background: #ffffff;
                box-shadow: 0 0 0 4px rgba(13,110,253,0.08);
            }
        /* floating label */
        .floating-label {
            position: absolute;
            top: 14px;
            left: 18px;
            color: var(--text-muted);
            background: transparent;
            padding: 0 5px;
            transition: var(--transition);
            pointer-events: none;
            font-weight: 500;
            font-size: 0.95rem;
        }

        .form-control:focus + .floating-label,
        .form-control:not(:placeholder-shown) + .floating-label {
            top: -10px;
            left: 14px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--primary);
            background: white;
            padding: 0 6px;
            border-radius: 40px;
        }

        /* mobile country + input */
        .mobile-group {
            display: flex;
            gap: 0;
            border-radius: 16px;
            overflow: hidden;
            background: #f9fafc;
            border: 2px solid #eef1f4;
            transition: var(--transition);
        }

            .mobile-group:focus-within {
                border-color: var(--primary);
                background: #fff;
                box-shadow: 0 0 0 4px rgba(13,110,253,0.08);
            }

        .country-select {
            width: 140px;
            flex-shrink: 0;
            border: none;
            background: transparent;
            padding: 14px 10px;
            font-weight: 500;
            color: #1a2634;
            border-right: 1px solid #e2e6ea;
            font-size: 0.95rem;
            cursor: pointer;
        }

            .country-select:focus {
                outline: none;
            }

        .mobile-input {
            border: none !important;
            background: transparent !important;
            border-radius: 0 !important;
            padding: 14px 14px 14px 10px !important;
            flex: 1;
            box-shadow: none !important;
        }

            .mobile-input:focus {
                background: transparent !important;
                box-shadow: none !important;
                border-color: transparent !important;
            }

        .mobile-group .floating-label {
            left: 150px;
            top: 14px;
            background: transparent;
        }

        .mobile-group .mobile-input:focus ~ .floating-label,
        .mobile-group .mobile-input:not(:placeholder-shown) ~ .floating-label {
            top: -10px;
            left: 145px;
            background: white;
            padding: 0 6px;
        }

        .password-toggle {
            position: absolute;
            right: 16px;
            top: 16px;
            cursor: pointer;
            color: #8a94a6;
            z-index: 3;
            transition: var(--transition);
        }

            .password-toggle:hover {
                color: var(--primary);
            }

        .btn-primary-gradient {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border: none;
            padding: 14px 24px;
            border-radius: 40px;
            font-weight: 600;
            color: white;
            width: 100%;
            font-size: 1rem;
            transition: var(--transition);
            box-shadow: 0 8px 24px rgba(13,110,253,0.25);
            letter-spacing: 0.3px;
        }

            .btn-primary-gradient:hover {
                transform: translateY(-3px);
                box-shadow: 0 12px 32px rgba(13,110,253,0.35);
                color: white;
            }

            .btn-primary-gradient:active {
                transform: scale(0.97);
            }

        .switch-link {
            text-align: center;
            margin-top: 28px;
            color: var(--text-muted);
            font-size: 0.95rem;
        }

            .switch-link a {
                color: var(--primary);
                font-weight: 600;
                text-decoration: none;
                transition: var(--transition);
            }

                .switch-link a:hover {
                    color: var(--secondary);
                    text-decoration: underline;
                }

        .forgot-link {
            color: var(--text-muted);
            font-size: 0.9rem;
            text-decoration: none;
        }

            .forgot-link:hover {
                color: var(--primary);
                text-decoration: underline;
            }

        .form-check-input:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        /* OTP panel */
        .otp-container {
            padding: 10px 0;
        }

        .otp-title {
            font-weight: 700;
            font-size: 1.6rem;
            margin-bottom: 6px;
        }

        .otp-desc {
            color: var(--text-muted);
            margin-bottom: 28px;
        }

        .otp-inputs {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 28px;
        }

        .otp-input {
            width: 54px;
            height: 64px;
            text-align: center;
            font-size: 1.6rem;
            font-weight: 600;
            border: 2px solid #eef1f4;
            border-radius: 16px;
            background: #f9fafc;
            transition: var(--transition);
        }

            .otp-input:focus {
                border-color: var(--primary);
                background: #fff;
                box-shadow: 0 0 0 4px rgba(13,110,253,0.08);
                outline: none;
            }

        .resend-row {
            margin-top: 18px;
            font-size: 0.95rem;
            color: var(--text-muted);
        }

            .resend-row a {
                color: var(--primary);
                font-weight: 600;
                text-decoration: none;
                cursor: pointer;
            }

                .resend-row a:hover {
                    text-decoration: underline;
                }

        .timer {
            font-weight: 600;
            color: var(--accent);
        }

        .back-link {
            margin-top: 24px;
        }

            .back-link a {
                color: var(--text-muted);
                text-decoration: none;
                transition: var(--transition);
            }

                .back-link a:hover {
                    color: var(--primary);
                }

        /* responsive */
        @media (max-width: 1100px) {
            .mexus-card

        {
            flex-direction: column;
            max-width: 700px;
        }

        .panel-brand {
            min-height: 260px;
            padding: 32px 24px;
        }

        .brand-content h2 {
            font-size: 2rem;
        }

        .panel-form {
            padding: 36px 32px;
        }

        }
        @media (max-width: 600px) {
            .panel-form

        {
            padding: 28px 20px;
        }

        .brand-content h2 {
            font-size: 1.7rem;
        }

        .feature-item {
            font-size: 0.8rem;
            padding: 6px 16px;
        }

        .otp-input {
            width: 44px;
            height: 54px;
            font-size: 1.3rem;
        }

        .country-select {
            width: 120px;
        }

        .mobile-group .floating-label {
            left: 130px;
        }

        .mobile-group .mobile-input:focus ~ .floating-label,
        .mobile-group .mobile-input:not(:placeholder-shown) ~ .floating-label {
            left: 125px;
        }

        }
    
