
    :root {
        --auth-plum: #8c449b;
        --auth-plum-deep: #5f2c6b;
        --auth-rose: #f03560;
        --auth-grad: linear-gradient(135deg, #f03560 0%, #8c449b 100%);
        --auth-ink: #2b2230;
        --auth-muted: #6f6577;
        --auth-line: #e7dded;
    }

    /* hide the old fixed background element if present */
    .lw-login-register-page .lw-page-bg { display: none !important; }

    body.lw-login-register-page {
        background: #fff !important;
        font-family: 'Tajawal', 'Nunito Sans', sans-serif !important;
        margin: 0 !important;
    }

    .lw-auth {
        display: flex;
        min-height: 100vh;
        width: 100%;
    }

    /* ---------- Brand panel ---------- */
    .lw-auth-brand {
        position: relative;
        flex: 1 1 50%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 3.5rem;
        overflow: hidden;
        background:
            linear-gradient(160deg, rgba(95, 44, 107, .72) 0%, rgba(240, 53, 96, .45) 100%),
            url('/imgs/home/random2/login.jpg');
        background-size: cover;
        background-position: center;
    }
    .lw-auth-brand::after {
        content: "";
        position: absolute; inset: 0;
        background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
        background-size: 26px 26px;
        pointer-events: none;
    }
    .lw-auth-brand .lw-auth-brand-inner { position: relative; z-index: 2; max-width: 460px; }
    .lw-auth-brand img.lw-auth-brand-logo { height: 64px; margin-bottom: 2rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
    .lw-auth-brand h2 { color: #fff !important; font-size: 2rem; font-weight: 800; line-height: 1.35; margin: 0 0 1rem; }
    .lw-auth-brand p { color: rgba(255,255,255,.9) !important; font-size: 1.05rem; line-height: 1.8; margin: 0 0 1.6rem; }
    .lw-auth-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
    .lw-auth-pills span {
        display: inline-flex; align-items: center; gap: .5rem;
        color: #fff !important; background: rgba(255,255,255,.16);
        border: 1px solid rgba(255,255,255,.25);
        padding: .45rem 1rem; border-radius: 50px; font-size: .9rem; font-weight: 500;
        backdrop-filter: blur(6px);
    }
    .lw-auth-pills span i { color: #ffd1de !important; }

    /* ---------- Form panel ---------- */
    .lw-auth-form-wrap {
        flex: 1 1 50%;
        display: flex; align-items: center; justify-content: center;
        padding: 3rem 1.5rem;
        background: #fff;
    }
    .lw-auth-card { width: 100%; max-width: 420px; }
    .lw-auth-card .lw-auth-logo-mobile { display: none; text-align: center; margin-bottom: 1.5rem; }
    .lw-auth-card .lw-auth-logo-mobile img { height: 56px; }

    .lw-auth-card h4.lw-auth-title {
        color: var(--auth-ink) !important; font-size: 1.7rem; font-weight: 800; margin: 0 0 .35rem;
    }
    .lw-auth-card .lw-auth-sub { color: var(--auth-muted) !important; font-size: .98rem; margin: 0 0 1.8rem; }

    .lw-auth-card .form-group { margin-bottom: 1.15rem; }
    .lw-auth-card label { color: var(--auth-ink) !important; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; display: block; }
    .lw-auth-card .lw-input-wrap { position: relative; }
    .lw-auth-card .lw-input-wrap > i.lw-input-icon {
        position: absolute; top: 50%; inset-inline-start: 1rem; transform: translateY(-50%);
        color: var(--auth-plum) !important; font-size: .95rem; pointer-events: none;
    }
    .lw-auth-card .form-control {
        height: 52px !important;
        border: 1.5px solid var(--auth-line) !important;
        border-radius: 14px !important;
        background: #faf7fb !important;
        color: var(--auth-ink) !important;
        padding-inline-start: 2.7rem !important;
        padding-inline-end: 2.7rem !important;
        font-size: 1rem !important;
        transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
        box-shadow: none !important;
    }
    .lw-auth-card .form-control:focus {
        border-color: var(--auth-plum) !important;
        background: #fff !important;
        box-shadow: 0 0 0 4px rgba(140, 68, 155, .12) !important;
        outline: none !important;
    }
    .lw-auth-card .form-control::placeholder { color: #b7adbf !important; }
    .lw-auth-card .lw-pass-toggle {
        position: absolute; top: 50%; inset-inline-end: .9rem; transform: translateY(-50%);
        background: none; border: none; color: var(--auth-muted) !important; cursor: pointer; padding: .3rem; font-size: .95rem;
    }
    .lw-auth-card .lw-pass-toggle:hover { color: var(--auth-plum) !important; }

    /* remember + forgot row */
    .lw-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
    .lw-auth-card .custom-control-label { color: var(--auth-muted) !important; font-weight: 500; }
    .lw-auth-card .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--auth-plum) !important; border-color: var(--auth-plum) !important; }
    .lw-auth-card a.lw-auth-link { color: var(--auth-plum) !important; font-weight: 600; font-size: .92rem; text-decoration: none; }
    .lw-auth-card a.lw-auth-link:hover { color: var(--auth-rose) !important; text-decoration: underline; }

    /* buttons */
    .lw-auth-card .btn { border-radius: 14px !important; font-weight: 700 !important; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-size: 1rem; }
    .lw-auth-card .btn-primary {
        background: var(--auth-grad) !important; border: none !important; color: #fff !important;
        box-shadow: 0 12px 26px -10px rgba(240, 53, 96, .6) !important; width: 100%;
        transition: transform .2s ease, box-shadow .2s ease;
    }
    .lw-auth-card .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(240, 53, 96, .7) !important; }
    .lw-auth-card .btn-google, .lw-auth-card .btn-facebook, .lw-auth-card .btn-secondary {
        width: 100%; background: #fff !important; border: 1.5px solid var(--auth-line) !important; color: var(--auth-ink) !important;
    }
    .lw-auth-card .btn-google:hover, .lw-auth-card .btn-facebook:hover, .lw-auth-card .btn-secondary:hover {
        border-color: var(--auth-plum) !important; background: #faf7fb !important;
    }
    .lw-auth-card .btn-google i { color: #ea4335 !important; }
    .lw-auth-card .btn-facebook i { color: #1877f2 !important; }

    /* divider */
    .lw-auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--auth-muted) !important; font-size: .85rem; }
    .lw-auth-divider::before, .lw-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }

    .lw-auth-social { display: flex; flex-direction: column; gap: .7rem; }

    /* footer create-account */
    .lw-auth-foot { text-align: center; margin-top: 1.6rem; }
    .lw-auth-foot p { color: var(--auth-muted) !important; margin: 0 0 .8rem; font-size: .95rem; }
    .lw-auth-foot a.lw-auth-create {
        display: inline-flex; align-items: center; gap: .5rem; color: var(--auth-plum) !important; font-weight: 700;
        border: 1.5px solid var(--auth-plum); padding: .6rem 1.6rem; border-radius: 50px; text-decoration: none; transition: all .2s ease;
    }
    .lw-auth-foot a.lw-auth-create:hover { background: var(--auth-grad); color: #fff !important; border-color: transparent; }

    .lw-auth-card .alert { border-radius: 12px !important; }
    .lw-auth-card .g-recaptcha { display: inline-block; margin: .2rem 0 1rem; }

    /* ---------- Responsive ---------- */
    @media (max-width: 991.98px) {
        .lw-auth-brand { display: none; }
        .lw-auth-form-wrap { flex-basis: 100%; }
        .lw-auth-card .lw-auth-logo-mobile { display: block; }
    }
