* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Arabic', sans-serif;
}

*,
::after,
::before {
    box-sizing: border-box;
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none;
}

.mou_login {
    display: none;
}

.full_logo {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.full_logo .logo_container {
    position: absolute;
    top: 50%;
    left: 50%;
}

.user_log_stats {
    display: none;
    position: absolute;
    bottom: 10vh;
    text-align: center;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.5rem;
}

.user_log_stats a {
    display: block;
    background: var(--elmnt_back);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 0 20px #00000078;
    width: 100%;
    margin: 0 auto;
    max-width: max-content;
}

body {
    color: var(--primary_text_color);
}

a[href] {
    color: var(--primary_text_color) !important;
}

.mou_bg {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
    /* background-color: var(--main_background); */
    background-image: url(../../files/images/posters1.jpg?v=20261119-042006);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: rotate(5deg) scale(1.2);
    z-index: -1;
}

.mou_login {
    position: relative;
}

.mou_login_full_container {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0.5rem;
    margin: 0 auto;
    margin-top: calc(125px + 2rem);
}

.mou_login_container {
    position: relative;
    box-shadow: 0 0 20px #00000078;
    border-radius: 20px;
    min-height: 400px;
    height: 100%;
    padding: 0.5rem;
    padding-top: calc(125px + 3rem);
    background-color: var(--main_background);
}

.logo_container {
    position: absolute;
    top: 0;
    left: 50%;
    max-width: 250px;
    width: 100%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #00000078;
    border-radius: 20px;
    background-color: var(--main_background);
}

.logo_container img {
    display: block;
    width: 100%;
    height: 100%;
}

.title_container {
    position: relative;
    color: var(--primary_text_color);
    border-radius: 20px;
    width: max-content;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
    margin-top: -26px;
    margin-bottom: 1rem;
}

.mou_watch_btn {
    display: block;
    background-image: linear-gradient(to right, #eb2f24 0%, #000000 51%, #eb2f24 100%);
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 250% 250%;
    color: white;
    box-shadow: 0 0 20px #00000078;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.3rem;
    border: none;
    margin: 1rem auto;
    padding: 0.5rem 0;
    width: 100%;
    max-width: 400px;
}

.mou_watch_btn:hover {
    background-position: right center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.mou_watch_btn.loading {
    animation: backgroundShift 2s ease infinite;
}

/* Define the animation */
@keyframes backgroundShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.mou_watch_btn i {
    margin: 0 0.5rem;
}

.title {
    font-size: 26px;
    font-weight: 700;
}


/* input container */
input,
textarea {
    font-family: 'Noto Sans Arabic', sans-serif;
    background: #0000;
    width: 100%;
    border: 0;
    color: var(--mou_color);
    padding: 10px;
    border-radius: 10px;
}

input:focus {
    outline: none;
    background: #00000012;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 50000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

.mou_input_container {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 10px;
    color: var(--primary_text_color);
    background: var(--main_background) !important;
    box-shadow: 0 0 10px #00000078;
}

.mou_input_container .input {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
    font-family: 'Noto Sans Arabic', sans-serif;
    /* border: solid 2px var(--mou_border_color); */
    border-radius: 10px;
    background: #0000;
    border: none;
    resize: none;
    direction: ltr;
}

.mou_input_container .input.rtl {
    direction: rtl;
}

.prepend_input {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    /* border: solid 2px var(--mou_border_color); */
    border-radius: 10px;
    padding: 4px 10px;
    border-end-end-radius: 0px;
    border-start-end-radius: 0px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.append_input {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    /* border: solid 2px var(--mou_border_color); */
    border-radius: 10px;
    padding: 4px 10px;
    border-start-start-radius: 0px;
    border-end-start-radius: 0px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

html:not([dir="rtl"]) .mou_input_container.prepend .input {
    /* margin-left: -1px; */
    border-start-start-radius: 0px;
    border-end-start-radius: 0px;
}

html:not([dir="rtl"]) .mou_input_container.append .input {
    /* margin-right: -1px; */
    border-end-end-radius: 0px;
    border-start-end-radius: 0px;
}

html[dir="rtl"] .mou_input_container.prepend .input:not(:focus) {
    border-start-start-radius: unset;
    border-end-start-radius: unset;
    /* margin-right: -1px; */
}


html[dir="rtl"] .mou_input_container.prepend .input.ltr:focus {
    border-end-end-radius: unset;
    border-start-end-radius: unset;
    /* margin-right: -1px; */
}

html[dir="rtl"] .mou_input_container.prepend .input:not(.ltr):focus,
html[dir="rtl"] .mou_input_container.append .input.ltr:focus {
    border-start-start-radius: unset;
    border-end-start-radius: unset;
    /* margin-left: -1px; */
}

html[dir="rtl"] .mou_input_container.append .input:not(:focus),
html[dir="rtl"] .mou_input_container.append .input:not(.ltr):focus {
    border-end-end-radius: unset;
    border-start-end-radius: unset;
    /* margin-left: -1px; */
}


.input.ltr,
textarea.ltr {
    text-align: left;
    direction: ltr;

}

.input.ltr:focus,
textarea.ltr:focus {
    text-align: left;
    direction: ltr;
}

.input.placertl::placeholder,
textarea.placertl::placeholder {
    text-align: right;
}

.invalid-feedback {
    display: block;
    max-width: max-content;
    border-radius: 10px;
    margin: 0 auto;
    padding: 0.5rem;
    /* text-align: center; */
    margin-bottom: 1rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* end input container */

.links {
    text-align: center;
}

.signupform,
.have_account,
.signinform,
.have_account,
.noaccount,
.signin_without_account_form,
.forget_password {
    display: none;
}


.mou_login_container[data-what="sign_up"] .signupform {
    display: block;
}

.mou_login_container[data-what="sign_up"] .have_account {
    display: block;
}

.mou_login_container[data-what="sign_in"] .signinform {
    display: block;
}

.mou_login_container[data-what="sign_up"] .signupform {
    display: block;
}

.mou_login_container[data-what="forget_password"] .forget_password {
    display: block;
}

.mou_login_container[data-what="gust"] .signin_without_account_form {
    display: block;
}

.mou_login_container[data-what="gust"] .login_without_account {
    display: none;
}

.mou_login_container[data-what="gust"] .have_account {
    display: block;
}

.mou_login_container[data-what="gust"] .noaccount {
    display: block;
}

.mou_login_container[data-what="sign_in"] .noaccount {
    display: block;
}

.mou_login_container[data-what="forget_password"] .have_account {
    display: none;
}

.d-none {
    display: none;
}

.full_code_container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 100%;
    padding: 1rem 0;
    overflow-y: auto;
    max-height: 100%;
}

.full_code_container .half {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 0.5rem;
    padding: 0.5rem 0;
    justify-content: center;
}

hr {
    border-color: #ffffff24;
    margin: 0.8rem 0;
}



@media (max-width: 360px) {
    .full_code_container .half {
        grid-template-columns: 1fr;
    }
}

.code_container {
    position: relative;
    background: var(--first_background_color);
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    padding: 1rem;
    margin: 0 0.5rem;
    box-shadow: 0 0 5px #00000078;
    background-color: var(--main_background);
}

.code_container p {
    text-align: center;
}

.code_container .code {
    direction: ltr;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 10px;
    padding: 1rem 0;
    justify-content: center;
}



/* .code_container .code input {
    position: relative;
    border-radius: 10px;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    background-color: var(--elmnt_back);
    width: 100%;
    height: 54px;
} */

.code_container .code input {
    margin: 0;
    padding: 8px;
    height: 100%;
    text-align: center;
    font-size: 30px;
    background-color: var(--elmnt_back);
}

.code_container .code input:focus {
    /* border-bottom: solid 2px #fff; */
}

/* Chrome, Safari, Edge, Opera */
.code_container .code input::-webkit-outer-spin-button,
.code_container .code input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.code_container .code input[type=number] {
    -moz-appearance: textfield;
}

.code_text,
.active_with_code {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background-color: var(--elmnt_back);
    width: 100%;
}

.code_btn {
    cursor: pointer;
}

#create_active_code {
    display: none;
    background: #eb2f24;
    cursor: pointer;
}

.mou_btn {
    position: relative;
    font-family: 'Noto Sans Arabic', sans-serif;
    color: var(--first_color_text) !important;
    padding: 0.5rem 2px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    text-align: center;
    box-shadow: 0 0 20px #00000078;
    background: var(--elmnt_back);
    border: none;
    border-bottom: solid 3px #ffffff;
}

.mou_btn i {
    position: relative;
    top: 2px;
    margin-left: 0.2rem;
}

#user_id_want_active {
    font-size: 1.1rem;
    font-weight: bolder;
    color: #fff;
    background: var(--primary-color);
    border-radius: 20px;
    padding: 0 20px;
}

@media (max-width: 400px) {

    #user_id_want_active {
        display: block;
        width: max-content;
        margin: 0 auto;
    }
}

#get_my_activation_code {
    border-bottom: solid 3px var(--primary-color);
}


.mou_alert {
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    box-shadow: none;
    background-image: none;
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 0.813rem;
    line-height: 1.25rem;
    letter-spacing: 0px;
    display: flex;
    padding: 6px 16px;
    border-radius: 8px;
    color: rgb(238, 238, 238);
    background-color: rgb(26, 34, 66);
    margin-bottom: 0.5rem;
}

@media (max-width: 400px) {
    .mou_alert {
        max-width: 100%;
    }
}

.mou_alert-icon {
    padding: 7px 0px;
    display: flex;
    font-size: 22px;
    opacity: 0.9;
}

html[dir="rtl"] .mou_alert-icon {
    margin-left: 12px;
}

html[dir="ltr"] .mou_alert-icon {
    margin-right: 12px;
}

.mou_alert-message {
    display: flex;
    align-items: center;
}

.mou_success {
    background-color: rgb(36 131 35);
}

.mou_danger {
    background-color: rgb(161 53 53);
}

.forget_password_alert {
    display: none;
}

.center {
    text-align: center;
}

::-webkit-scrollbar {
    display: none;
    width: 4px;
    height: 4px;
    background: rgb(var(--elmnt_back));
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffffc9;
}

:root {
    --mou_gridiant_background: linear-gradient(186deg, var(--first_background_color) 0%, var(--second_background_color) 49%, var(--second_background_color) 74%, var(--first_background_color) 100%);
    --bg-success-color: #198754;
    --mou_border_color2: #ffffffb0;
    --elmnt_back: #2b2c2c;
    --main_background: #141414;
    --primary-color: #eb2f24;
    --primary_text_color: #fff;
}


/* ==========================================================================
   تسجيل الدخول بكود QR
   ========================================================================== */
.qr_login_box {
    display: none;
}

.mou_login_container[data-what="qr"] .qr_login_box {
    display: block;
}

.mou_login_container[data-what="qr"] .have_account {
    display: block;
}

.qr_toggle_btn {
    background-image: linear-gradient(to right, #2b2c2c 0%, #171717 51%, #2b2c2c 100%);
}

.qr_login_head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 0.4rem 0 0.9rem;
}

.qr_login_head>i {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--primary-color);
}

.qr_login_titles {
    text-align: right;
    line-height: 1.5;
}

.qr_login_titles b {
    display: block;
    font-size: 1rem;
    color: var(--primary_text_color);
}

.qr_login_titles span {
    display: block;
    font-size: 0.78rem;
    color: #ffffff8a;
}

.qr_frame {
    position: relative;
    width: 280px;
    max-width: 78vw;
    margin: 0 auto;
    /* حشوة بيضا حوالين الكود — الـ SVG نفسه فيه كمان هامش Quiet Zone */
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px #00000059;
}

.qr_frame::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.qr_frame>* {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
}

.qr_frame svg {
    display: block;
    /* مهم: 100% هنا بتتحسب على padding-box (أكبر من المحتوى بـ 2×padding)،
       فكان الكود بيطلع أكبر من الإطار ويتقص من تحت ويمين. calc بتخليه
       بالظبط في المساحة الداخلية. */
    width: calc(100% - 24px);
    height: calc(100% - 24px);
}

.qr_frame .qr_placeholder {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #141414;
    font-size: 2rem;
}

.qr_frame.qr_loading svg,
.qr_frame.qr_expired svg {
    opacity: 0.12;
}

.qr_status {
    min-height: 1.4em;
    margin: 0.75rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: #ffffffc4;
}

.qr_status.qr_error {
    color: #ff9a92;
}

.qr_actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.6rem;
    gap: 0.6rem;
    max-width: 320px;
    margin: 0.7rem auto 0.2rem;
}

.qr_actions .mou_btn {
    font-size: 0.85rem;
}

.login_features {
    display: none;
}


/* ==========================================================================
   الشاشات الكبيرة (تلفاز / كمبيوتر): كارت بعمودين — هوية + فورم
   ========================================================================== */
@media (min-width: 900px) {
    .mou_login_full_container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: 100%;
        max-width: 1080px;
        min-height: 100vh;
        margin-top: 0;
        padding: 2rem;
    }

    .mou_login_container {
        display: grid;
        grid-template-columns: 42% 1fr;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        width: 100%;
        min-height: 560px;
        margin: auto;
        padding: 0;
        padding-top: 0;
        overflow: hidden;
    }

    .login_brand {
        position: relative;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 2rem;
        padding: 2.5rem 2rem;
        background: linear-gradient(165deg, #232323 0%, #131313 55%, #1e0f0e 100%);
        border-left: 1px solid #ffffff10;
    }

    .mou_login_container .logo_container {
        position: static;
        top: auto;
        left: auto;
        -webkit-transform: none;
        transform: none;
        width: 100%;
        max-width: 220px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .mou_login_container .logo_container img {
        height: auto;
    }

    .login_brand .title_container {
        margin-top: 0.6rem;
        margin-bottom: 0;
    }

    .login_features {
        display: grid;
        grid-gap: 1rem;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .login_features li {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 0.85rem;
        text-align: right;
        color: var(--primary_text_color);
    }

    .login_features li>i {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-negative: 0;
        flex: none;
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 12px;
        background: #ffffff0f;
        color: var(--primary-color);
        font-size: 1.05rem;
    }

    .login_features b {
        display: block;
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .login_features span {
        display: block;
        font-size: 0.76rem;
        color: #ffffff8a;
    }

    .login_forms {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        padding: 3rem 2.5rem 2rem;
    }

    .login_forms .mou_watch_btn {
        max-width: none;
    }

    .login_forms .mou_input_container {
        background: #1b1b1b !important;
        border: 1px solid #ffffff0f;
    }

    .qr_frame {
        width: 300px;
        max-width: 300px;
    }
}

@media (min-width: 1400px) {
    .mou_login_full_container {
        max-width: 1200px;
    }

    .mou_login_container {
        min-height: 620px;
    }

    .title {
        font-size: 32px;
    }

    .mou_watch_btn {
        font-size: 1.4rem;
        padding: 0.7rem 0;
    }

    .login_forms {
        padding: 3.5rem 3rem 2.5rem;
    }

    .qr_frame {
        width: 360px;
        max-width: 360px;
    }

    .login_features b {
        font-size: 1rem;
    }

    .login_features span {
        font-size: 0.82rem;
    }
}


/* ==========================================================================
   إطار التركيز بتاع الريموت (files/js/dpad.js)
   ========================================================================== */
body.dpad_mode .dpad_focus {
    outline: 3px solid var(--colorAccent, #ff3b30) !important;
    outline-offset: 2px;
    box-shadow:
        inset 0 0 0 2px var(--colorAccent, #ff3b30),
        0 0 0 5px rgba(255, 59, 48, 0.16),
        0 14px 30px -14px rgba(0, 0, 0, 0.9) !important;
    scroll-margin: 100px 18px 90px 18px;
}

body.dpad_mode .dpad_focus:focus {
    outline: 3px solid var(--colorAccent, #ff3b30) !important;
}

body.dpad_mode :focus:not(.dpad_focus) {
    outline: none !important;
}