  :root {
            /* EnSmart colour scheme */
            --ensmart-blue: #129fdf;
            --ensmart-green: #1fbe59;
            --ensmart-yellow: #f2b01e;
            --ensmart-dark: #0f1720;
            --ensmart-grey: #6b7280;
            --ensmart-light: #f4f7fb;
            --white: #ffffff;
            --border: #d8e0ea;
            --danger-bg: #fff2f2;
            --danger-text: #b42318;
            --success-bg: #eefcf3;
            --success-text: #087443;
            --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background:
                linear-gradient(135deg, rgba(18,159,223,0.10), rgba(31,190,89,0.08)),
                #eef3f8;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            color: var(--ensmart-dark);
        }

        .login-container {
            width: 100%;
            max-width: 1040px;
            background: var(--white);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow);
            display: grid;
            grid-template-columns: 1.05fr 0.95fr;
        }

        .left-panel {
            position: relative;
            padding: 48px;
            background: linear-gradient(155deg, var(--ensmart-blue), #0b65b7 55%, var(--ensmart-green));
            color: var(--white);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .left-panel::before {
            content: "";
            position: absolute;
            top: -100px;
            right: -120px;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: rgba(255,255,255,0.08);
        }

        .left-panel::after {
            content: "";
            position: absolute;
            bottom: -80px;
            left: -80px;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: rgba(242,176,30,0.15);
        }

        .left-content,
        .left-footer,
        .brand-block {
            position: relative;
            z-index: 1;
        }

        .brand-block img {
            max-width: 280px;
            width: 100%;
            height: auto;
            display: block;
            margin-bottom: 24px;
            background: rgba(255,255,255,1);
            padding: 10px 14px;
            border-radius: 12px;
        }

        .app-name {
            font-size: 42px;
            font-weight: 700;
            margin: 0 0 8px 0;
            letter-spacing: -1px;
        }

        .app-subtitle {
            margin: 0;
            font-size: 18px;
            color: rgba(255,255,255,0.88);
        }

        .left-content h1 {
            margin: 0 0 16px;
            font-size: 36px;
            line-height: 1.15;
        }

        .left-content p {
            margin: 0;
            font-size: 16px;
            line-height: 1.7;
            color: rgba(255,255,255,0.88);
            max-width: 440px;
        }

        .left-footer {
            font-size: 13px;
            color: rgba(255,255,255,0.75);
        }

        .right-panel {
            padding: 52px 46px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
        }

        .form-wrap {
            width: 100%;
            max-width: 380px;
        }

        .form-wrap h2 {
            margin: 0 0 8px;
            font-size: 30px;
            color: var(--ensmart-dark);
        }

        .form-wrap .intro {
            margin: 0 0 28px;
            color: var(--ensmart-grey);
            line-height: 1.6;
        }

        .alert {
            padding: 12px 14px;
            border-radius: 10px;
            margin-bottom: 18px;
            font-size: 14px;
            line-height: 1.4;
        }

        .alert-error {
            background: var(--danger-bg);
            color: var(--danger-text);
            border: 1px solid #f5c2c7;
        }

        .alert-success {
            background: var(--success-bg);
            color: var(--success-text);
            border: 1px solid #b7ebc6;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 14px;
        }

        .form-group input {
            width: 100%;
            height: 48px;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 0 14px;
            font-size: 15px;
            outline: none;
            background: #fbfdff;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .form-group input:focus {
            border-color: var(--ensmart-blue);
            box-shadow: 0 0 0 4px rgba(18,159,223,0.12);
            background: #fff;
        }

        .password-wrap {
            position: relative;
        }

        .password-wrap input {
            padding-right: 46px;
        }

        .toggle-password {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 13px;
            color: var(--ensmart-blue);
            font-weight: 600;
        }

        .options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 22px;
            gap: 12px;
            font-size: 14px;
        }

        .remember-me {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--ensmart-grey);
        }

        .remember-me input {
            accent-color: var(--ensmart-green);
        }

        .forgot-link {
            color: var(--ensmart-blue);
            text-decoration: none;
            font-weight: 600;
        }

        .forgot-link:hover {
            text-decoration: underline;
        }

        .login-btn {
            width: 100%;
            height: 50px;
            border: none;
            border-radius: 10px;
            background: linear-gradient(90deg, var(--ensmart-blue), var(--ensmart-green));
            color: var(--white);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.15s ease, opacity 0.15s ease;
        }

        .login-btn:hover {
            transform: translateY(-1px);
            opacity: 0.95;
        }

        .footer-note {
            margin-top: 20px;
            text-align: center;
            font-size: 12px;
            color: var(--ensmart-grey);
            line-height: 1.5;
        }

        .accent-line {
            width: 72px;
            height: 5px;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--ensmart-yellow), var(--ensmart-blue), var(--ensmart-green));
            margin: 0 0 22px;
        }

        @media (max-width: 860px) {
            .login-container {
                grid-template-columns: 1fr;
            }

            .left-panel {
                padding: 32px;
            }

            .right-panel {
                padding: 36px 24px 40px;
            }

            .app-name {
                font-size: 34px;
            }

            .left-content h1 {
                font-size: 28px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 12px;
            }

            .left-panel,
            .right-panel {
                padding-left: 20px;
                padding-right: 20px;
            }

            .options {
                flex-direction: column;
                align-items: flex-start;
            }
        }