 :root {
            --brand-dark: #0f1624;
            --brand-mid: #162033;
            --brand-accent: #2d6dc0;
            --brand-accent2: #00a374;
            --brand-muted: #7de3be;
            --font-display: 'DM Serif Display', serif;
            --font-body: 'Plus Jakarta Sans', sans-serif;
            --radius-sm: 8px;
            --radius-md: 12px;
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-body);
            margin: 0;
            min-height: 100vh;
            display: flex;
        }

        /* ── ANIMATIONS ── */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes floatOrb {

            0%,
            100% {
                transform: translateY(0px) scale(1);
            }

            50% {
                transform: translateY(-18px) scale(1.04);
            }
        }

        @keyframes pulse-ring {
            0% {
                transform: scale(0.9);
                opacity: 0.6;
            }

            100% {
                transform: scale(1.4);
                opacity: 0;
            }
        }

        .fade-up {
            animation: fadeUp 0.5s ease both;
        }

        .delay-1 {
            animation-delay: 0.08s;
        }

        .delay-2 {
            animation-delay: 0.16s;
        }

        .delay-3 {
            animation-delay: 0.24s;
        }

        .delay-4 {
            animation-delay: 0.32s;
        }

        .delay-5 {
            animation-delay: 0.40s;
        }

        /* ── BRAND PANEL (LEFT) ── */
        .brand-panel {
            width: 45%;
            background: var(--brand-dark);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 3rem 3.5rem;
        }

        /* Decorative orbs */
        .orb {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
        }

        .orb-1 {
            width: 420px;
            height: 420px;
            background: radial-gradient(circle, rgba(15, 39, 136, 0.18) 0%, transparent 70%);
            top: -120px;
            right: -100px;
            animation: floatOrb 7s ease-in-out infinite;
        }

        .orb-2 {
            width: 260px;
            height: 260px;
            background: radial-gradient(circle, rgba(7, 0, 201, 0.1) 0%, transparent 70%);
            bottom: 80px;
            left: -60px;
            animation: floatOrb 9s ease-in-out infinite reverse;
        }

        .orb-3 {
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(0, 201, 141, 0.12) 0%, transparent 70%);
            top: 50%;
            left: 60%;
            animation: floatOrb 5s ease-in-out infinite;
        }

        /* Dot grid texture */
        .brand-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
            background-size: 28px 28px;
            pointer-events: none;
        }

        .brand-logo {
            font-family: var(--font-display);
            font-size: 26px;
            color: #fff;
            text-decoration: none;
            position: relative;
            z-index: 2;
        }

        .brand-logo span {
            color: var(--brand-accent);
        }

        .brand-tagline {
            font-size: 11px;
            color: var(--brand-muted);
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-top: 4px;
            opacity: 0.7;
        }

        .brand-logo-image {
            position: relative;
            z-index: 2;
            width: fit-content;
            margin-top: 1rem;
            padding: 0.75rem;
            border-radius: 16px;
            background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
            border: 1px solid rgba(255, 255, 255, 0.16);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
            backdrop-filter: blur(6px);
        }

        .brand-logo-image img {
            width: clamp(88px, 10vw, 130px);
            height: auto;
            display: block;
            object-fit: contain;
            filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
        }

        .brand-hero {
            position: relative;
            z-index: 2;
        }

        .brand-hero h2 {
            font-family: var(--font-display);
            font-size: 2.4rem;
            color: #fff;
            line-height: 1.2;
            margin-bottom: 1.1rem;
        }

        .brand-hero h2 em {
            font-style: normal;
            color: var(--brand-accent);
        }

        .brand-hero p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.5);
            line-height: 1.75;
            max-width: 330px;
        }

        /* Feature list */
        .feature-list {
            list-style: none;
            padding: 0;
            margin: 1.8rem 0 0;
        }

        .feature-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.65);
            margin-bottom: 10px;
        }

        .feature-icon {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            background: rgba(37, 3, 140, 0.274);
            border: 1px solid rgba(0, 201, 141, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: var(--brand-accent);
            flex-shrink: 0;
        }

        .feature-icon i{
            color: #fff;
        }

        /* Stat pills */
        .brand-stats {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 2rem;
            position: relative;
            z-index: 2;
        }

        .stat-pill {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 6px 14px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.55);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .stat-pill i {
            color: var(--brand-accent);
        }

        .brand-footer {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.2);
            position: relative;
            z-index: 2;
        }

        .brand-footer a {
            color: rgba(255, 255, 255, 0.35);
            text-decoration: none;
        }

        .brand-footer a:hover {
            color: rgba(255, 255, 255, 0.6);
        }

        /* ── FORM PANEL (RIGHT) ── */
        .form-panel {
            flex: 1;
            background: #f7f9fc;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3rem 2rem;
            position: relative;
        }

        /* Subtle top accent bar */
        .form-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--brand-accent), #00d4ff);
        }

        .form-card {
            width: 100%;
            max-width: 420px;
            background: #fff;
            border-radius: 20px;
            padding: 2.5rem 2.2rem;
            box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
            border: 1px solid #edf0f5;
        }

        /* Greeting avatar */
        .greeting-avatar {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            background: var(--brand-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.2rem;
            position: relative;
        }

        .greeting-avatar i {
            color: #fff;
            font-size: 22px;
        }

        .online-dot {
            position: absolute;
            bottom: -3px;
            right: -3px;
            width: 14px;
            height: 14px;
            background: var(--brand-accent);
            border-radius: 50%;
            border: 2px solid #fff;
        }

        .online-dot::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            border: 2px solid var(--brand-accent);
            animation: pulse-ring 1.5s ease-out infinite;
        }

        .form-card h3 {
            font-family: var(--font-display);
            font-size: 1.9rem;
            color: #0f1624;
            margin-bottom: 4px;
        }

        .form-card .sub {
            font-size: 13px;
            color: #8896ab;
            margin-bottom: 1.8rem;
        }

        /* Alert */
        .alert-crm {
            background: rgba(226, 75, 74, 0.08);
            border: 1px solid rgba(226, 75, 74, 0.2);
            border-radius: var(--radius-sm);
            padding: 10px 14px;
            font-size: 13px;
            color: #a32d2d;
            display: none;
            margin-bottom: 1rem;
            align-items: center;
            gap: 8px;
        }

        /* Form fields */
        .field-group {
            margin-bottom: 1.1rem;
        }

        .field-label {
            font-size: 12px;
            font-weight: 600;
            color: #5a6a85;
            letter-spacing: 0.3px;
            display: block;
            margin-bottom: 5px;
        }

        .field-wrap {
            position: relative;
        }

        .field-wrap .field-icon {
            position: absolute;
            left: 13px;
            top: 50%;
            transform: translateY(-50%);
            color: #c0cad8;
            font-size: 13px;
            pointer-events: none;
        }

        .field-input {
            width: 100%;
            border: 1.5px solid #e4e9f0;
            border-radius: var(--radius-sm);
            padding: 10px 14px 10px 38px;
            font-size: 14px;
            font-family: var(--font-body);
            color: #1a2035;
            background: #f8fafc;
            transition: border-color .2s, box-shadow .2s, background .2s;
            outline: none;
        }

        .field-input:focus {
            border-color: var(--brand-accent);
            box-shadow: 0 0 0 3px rgba(0, 201, 141, 0.12);
            background: #fff;
        }

        .field-input.error {
            border-color: #e24b4a;
            box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.1);
        }

        /* Password toggle */
        .pw-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #c0cad8;
            cursor: pointer;
            padding: 0;
            font-size: 13px;
            transition: color .15s;
        }

        .pw-toggle:hover {
            color: #5a6a85;
        }

        /* Options row */
        .options-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.3rem;
        }

        .check-label {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 12px;
            color: #5a6a85;
            cursor: pointer;
            user-select: none;
        }

        .custom-check {
            width: 16px;
            height: 16px;
            border: 1.5px solid #d0d7e3;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .15s;
            flex-shrink: 0;
        }

        .custom-check.checked {
            background: var(--brand-accent);
            border-color: var(--brand-accent);
        }

        .forgot-link {
            font-size: 12px;
            color: var(--brand-accent2);
            font-weight: 600;
            text-decoration: none;
            transition: opacity .15s;
        }

        .forgot-link:hover {
            opacity: 0.75;
        }

        /* Submit button */
        .btn-submit {
            width: 100%;
            padding: 12px;
            background: var(--brand-accent);
            color: #fff;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 700;
            font-family: var(--font-body);
            cursor: pointer;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background .18s, transform .1s;
            margin-bottom: 1rem;
        }

        .btn-submit:hover {
            background: var(--brand-accent2);
            transform: translateY(-1px);
        }

        .btn-submit:active {
            transform: translateY(0);
        }

        .btn-submit .spinner {
            display: none;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin .6s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Divider */
        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 1.2rem 0;
            font-size: 12px;
            color: #b0bec5;
        }

        .divider hr {
            flex: 1;
            border: none;
            border-top: 1px solid #edf0f5;
            margin: 0;
        }

        /* SSO buttons */
        .sso-row {
            display: flex;
            gap: 10px;
            margin-bottom: 1.3rem;
        }

        .btn-sso {
            flex: 1;
            background: #fff;
            border: 1.5px solid #e4e9f0;
            border-radius: var(--radius-sm);
            padding: 9px 10px;
            font-size: 12px;
            font-family: var(--font-body);
            color: #344055;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            font-weight: 600;
            transition: border-color .15s, background .15s, transform .1s;
        }

        .btn-sso:hover {
            background: #f8fafc;
            border-color: #c5cdd8;
            transform: translateY(-1px);
        }

        .g-icon {
            width: 17px;
            height: 17px;
            border-radius: 50%;
            background: #e24b4a;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            color: #fff;
            font-weight: 800;
        }

        /* Secure badge */
        .secure-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 11px;
            color: #b0bec5;
            margin-top: 0.5rem;
        }

        .secure-badge i {
            color: var(--brand-accent);
        }

        /* Register link */
        .register-link {
            text-align: center;
            font-size: 13px;
            color: #8896ab;
            margin-top: 1.2rem;
            padding-top: 1.2rem;
            border-top: 1px solid #f0f3f8;
        }

        .register-link a {
            color: var(--brand-accent2);
            font-weight: 700;
            text-decoration: none;
        }

        .register-link a:hover {
            text-decoration: underline;
        }

        /* ── RESPONSIVE ── */
        @media (max-width: 991px) {
            .brand-panel {
                display: none;
            }

            .form-panel {
                background: #fff;
            }

            .form-panel::before {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .form-card {
                padding: 2rem 1.5rem;
                border-radius: 16px;
            }

            .sso-row {
                flex-direction: column;
            }
        }

        @media (max-width: 1200px) {
            .brand-logo-image {
                margin-top: 0.8rem;
            }

            .brand-logo-image img {
                width: clamp(82px, 9vw, 114px);
            }
        }