
    :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;
    }

    .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%; align-items: stretch; }

    /* ---------- Brand panel (sticky) ---------- */
    .lw-auth-brand {
        position: sticky; top: 0; align-self: flex-start;
        flex: 1 1 45%; 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/03.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 55%;
        display: flex; align-items: center; justify-content: center;
        padding: 3rem 1.5rem; background: #fff;
    }
    .lw-auth-card { width: 100%; max-width: 500px; }
    .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.1rem; }
    .lw-auth-card label { color: var(--auth-ink) !important; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; display: block; }
    .lw-auth-card .form-group:has(:required) > label::after { content: " *"; color: var(--auth-rose); font-weight: 700; }

    /* base controls */
    .lw-auth-card .form-control {
        height: 50px !important;
        border: 1.5px solid var(--auth-line) !important;
        border-radius: 14px !important;
        background: #faf7fb !important;
        color: var(--auth-ink) !important;
        padding: 0 1rem !important;
        font-size: .98rem !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; }
    select.form-control { cursor: pointer; }

    /* icon-inside inputs */
    .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 .lw-input-wrap .form-control { padding-inline-start: 2.7rem !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-input-wrap .form-control[type="password"], .lw-auth-card .lw-input-wrap .form-control[type="text"] { padding-inline-end: 2.7rem !important; }
    .lw-auth-card .lw-pass-toggle:hover { color: var(--auth-plum) !important; }

    /* two-column rows */
    .lw-auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

    /* bootstrap input-group (username @ / mobile / email) — modern spaced style */
    .lw-auth-card .input-group { display: flex; gap: .55rem; flex-wrap: nowrap; align-items: stretch; }
    .lw-auth-card .input-group-prepend { display: flex; }
    .lw-auth-card .input-group-text {
        background: #f4eef6 !important; border: 1.5px solid var(--auth-line) !important;
        color: var(--auth-plum) !important; border-radius: 14px !important; min-width: 50px;
        display: flex; align-items: center; justify-content: center; font-weight: 700;
    }
    .lw-auth-card .input-group > .form-control { flex: 1 1 auto; }
    .lw-auth-card .input-group .lw-country-code-select { flex: 0 1 48%; }

    /* checkbox / terms */
    .lw-auth-card .form-check { display: flex !important; align-items: flex-start !important; gap: .6rem !important; padding: 0 !important; }
    .lw-auth-card .form-check-input { position: static !important; width: 18px !important; height: 18px !important; margin: .2rem 0 0 !important; accent-color: var(--auth-plum); flex: 0 0 18px !important; cursor: pointer; }
    .lw-auth-card .form-check-label { position: static !important; padding: 0 !important; color: var(--auth-muted) !important; font-weight: 500; font-size: .92rem; line-height: 1.6; flex: 1 !important; cursor: pointer; }
    .lw-auth-card .form-check-label a { color: var(--auth-plum) !important; font-weight: 600; text-decoration: none; }
    .lw-auth-card .form-check-label a:hover { color: var(--auth-rose) !important; text-decoration: underline; }


    /* sign-up validation summary */
    #lwSignUpErrorBox {
        display: none;
        background: #fdecec;
        border: 1.5px solid #e53935;
        border-radius: 14px;
        padding: .95rem 1.1rem;
        margin-bottom: 1.3rem;
    }
    #lwSignUpErrorBox .lw-err-head {
        color: #c62828; font-weight: 800; font-size: .95rem; margin-bottom: .45rem;
    }
    #lwSignUpErrorBox .lw-err-head i { margin-inline-end: .45rem; }
    #lwSignUpErrorBox ul {
        margin: 0; padding-inline-start: 1.4rem; list-style: disc;
    }
    #lwSignUpErrorBox li {
        color: #c62828; font-size: .88rem; font-weight: 600; line-height: 1.9;
    }
    .lw-auth-card .lw-field-invalid .form-control,
    .lw-auth-card .lw-field-invalid .custom-select,
    .lw-auth-card .lw-field-invalid .lw-cc-btn,
    .lw-auth-card .lw-field-invalid .input-group-text { border-color: #e53935 !important; }

    /* 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; color: #fff !important; }

    /* footer back-to-login */
    .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 .g-recaptcha { display: inline-block; margin: .2rem 0; }

    /* divider */
    .lw-auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 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); }

    /* ---------- Custom country-code picker ---------- */
    .lw-cc-wrap { position: relative; flex: 0 0 26%; max-width: 26%; }
    .lw-cc-btn {
        width: 100%; height: 50px !important; display: flex; align-items: center;
        justify-content: space-between; gap: .4rem; padding: 0 .75rem !important;
        background: #faf7fb !important; border: 1.5px solid var(--auth-line) !important;
        border-radius: 14px !important; font-size: .88rem; font-weight: 600;
        color: var(--auth-ink) !important; cursor: pointer; text-align: start;
        white-space: nowrap; overflow: hidden;
    }
    .lw-cc-btn:focus, .lw-cc-btn.open {
        border-color: var(--auth-plum) !important;
        box-shadow: 0 0 0 4px rgba(140,68,155,.12) !important; outline: none;
    }
    .lw-cc-caret { font-size: .7rem; color: var(--auth-plum); flex-shrink: 0; }
    .lw-cc-dropdown {
        position: absolute; top: calc(100% + 6px); inset-inline-start: 0;
        width: 260px; background: #fff;
        border: 1px solid var(--auth-line); border-radius: 14px;
        box-shadow: 0 12px 32px rgba(140,68,155,.18);
        z-index: 9999; overflow: hidden;
    }
    .lw-cc-search-wrap {
        position: relative; padding: .7rem .75rem .5rem;
        border-bottom: 1px solid var(--auth-line);
    }
    .lw-cc-search-icon {
        position: absolute; top: 50%; inset-inline-start: 1.4rem;
        transform: translateY(-50%); color: var(--auth-plum); font-size: .85rem;
        pointer-events: none;
    }
    .lw-cc-search {
        width: 100%; border: 1.5px solid var(--auth-line); border-radius: 10px;
        padding: .45rem .75rem .45rem 2.2rem; font-size: .9rem;
        color: var(--auth-ink); background: #faf7fb; outline: none;
    }
    .lw-cc-search:focus { border-color: var(--auth-plum); background: #fff; }
    .lw-cc-list {
        list-style: none; margin: 0; padding: .4rem 0;
        max-height: 210px; overflow-y: auto;
    }
    .lw-cc-list li {
        padding: .55rem 1rem; font-size: .88rem; cursor: pointer;
        color: var(--auth-ink); display: flex; justify-content: space-between; align-items: center;
    }
    .lw-cc-list li:hover { background: #f3e8f7; color: var(--auth-plum); }
    .lw-cc-list li.selected { background: #ede0f5; font-weight: 700; color: var(--auth-plum); }
    .lw-cc-code { font-weight: 700; color: var(--auth-plum); font-size: .82rem; }
    .lw-cc-list li.lw-cc-hidden { display: none; }

    /* ---------- 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; }
    }
    @media (max-width: 480px) {
        .lw-auth-grid2 { grid-template-columns: 1fr; }
        .lw-auth-card .input-group .lw-country-code-select { flex: 0 0 28% !important; max-width: 28%; }
        .lw-auth-card .input-group > .form-control { flex: 1 1 0 !important; min-width: 0; }
    }
