:root {
            --wa-green: #25D366;
            --wa-green-dark: #128C4A;
            --wa-teal: #075E54;
            --ink: #1a2b2a;
            --muted: #6b7b79;
            --border: #e6ebe9;
            --danger: #d93025;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: "Montserrat", sans-serif;
            color: var(--ink);
            background: radial-gradient(1200px 800px at 100% 0%, #e9fff1 0%, #f7fbf8 45%, #ffffff 100%);
        }

        .page-shell {
            min-height: 100vh;
            display: flex;
            align-items: stretch;
        }

        /* LEFT PANEL */
        .brand-panel {
            flex: 1 1 50%;
            background: linear-gradient(160deg, var(--wa-teal) 0%, #0b7a63 55%, var(--wa-green-dark) 100%);
            color: #fff;
            padding: 2rem 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .brand-panel::before {
            content: "";
            position: absolute;
            width: 480px;
            height: 480px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            top: -160px;
            right: -160px;
        }

        .brand-panel::after {
            content: "";
            position: absolute;
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            bottom: -120px;
            left: -100px;
        }

        .brand-logo-badge {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            margin-bottom: 2rem;
            backdrop-filter: blur(4px);
        }

        .brand-panel h1 {
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 0.4rem;
            position: relative;
            z-index: 1;
        }

        .brand-panel h1 span {
            color: #d6ffe4;
        }

        .brand-panel p.lead-sub {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.85rem;
            max-width: 420px;
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }

        .feature-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem 0.6rem;
            position: relative;
            z-index: 1;
            margin-top: 1.25rem;
        }

        .feature-chip {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.78rem;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.12);
            padding: 0.4rem 0.7rem;
            border-radius: 999px;
            white-space: nowrap;
        }

        .feature-chip i {
            font-size: 0.75rem;
        }

        .crm-illustration {
            display: block;
            margin-top: 0.25rem;
            position: relative;
            z-index: 1;
            width: 220px;
            height: 220px;
            max-width: 100%;
            border-radius: 16px;
            object-fit: cover;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        /* RIGHT PANEL */
        .form-panel {
            flex: 1 1 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2.5rem 1.5rem;
            background: #fff;
        }

        .login-card {
            width: 100%;
            max-width: 400px;
        }

        .login-card .top-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #eafff2;
            color: var(--wa-green-dark);
            font-size: 0.78rem;
            font-weight: 600;
            padding: 0.35rem 0.75rem;
            border-radius: 999px;
            margin-bottom: 1.5rem;
        }

        .login-card h4 {
            font-weight: 700;
            font-size: 1.6rem;
            margin-bottom: 0.35rem;
        }

        .login-card .login-sub {
            color: var(--muted);
            font-size: 0.95rem;
            margin-bottom: 2rem;
        }

        .field-label {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--ink);
            margin-bottom: 0.4rem;
            display: block;
        }

        .input-wrap {
            position: relative;
            margin-bottom: 1.4rem;
        }

        .input-wrap .field-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9aa8a5;
            font-size: 0.95rem;
        }

        .form-control.custom-input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.6rem;
            border-radius: 10px;
            border: 1.5px solid var(--border);
            font-size: 0.95rem;
            background: #fafcfb;
            transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        }

        .form-control.custom-input:focus {
            outline: none;
            border-color: var(--wa-green);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14);
        }

        .toggle-password {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #9aa8a5;
            font-size: 0.95rem;
        }

        .toggle-password:hover {
            color: var(--wa-green-dark);
        }

        .row-between {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.6rem;
        }

        .remember-check {
            font-size: 0.85rem;
            color: var(--muted);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .forgot-password {
            color: var(--wa-green-dark);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        .btn-login {
            width: 100%;
            background: var(--wa-green);
            border: none;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            padding: 0.85rem;
            border-radius: 10px;
            color: #fff;
            transition: background 0.15s ease, transform 0.05s ease;
        }

        .btn-login:hover {
            background: var(--wa-green-dark);
            color: #fff;
        }

        .btn-login:active {
            transform: translateY(1px);
        }

        .divider-text {
            text-align: center;
            color: var(--muted);
            font-size: 0.8rem;
            margin: 1.5rem 0;
        }

        .signup-line {
            text-align: center;
            font-size: 0.9rem;
            color: var(--muted);
        }

        .signup-line a {
            color: var(--wa-green-dark);
            font-weight: 700;
            text-decoration: none;
        }

        .signup-line a:hover {
            text-decoration: underline;
        }

        .alert-custom {
            border: 1px solid #ffd6d2;
            background: #fff3f2;
            color: var(--danger);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            font-size: 0.88rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.4rem;
        }

        .alert-custom a {
            color: var(--danger);
            text-decoration: none;
            font-weight: 700;
        }

        .page-footer {
            text-align: center;
            font-size: 0.8rem;
            color: var(--muted);
            padding: 1rem 0 0.5rem;
        }

        .page-footer a {
            color: var(--wa-green-dark);
            font-weight: 600;
            text-decoration: none;
        }

        @media (max-width: 900px) {
            .brand-panel {
                display: none;
            }

            .form-panel {
                flex: 1 1 100%;
            }
        }