:root {
    --main-bg-color: #f5f5f5;
    --primary-color: #007bff;
    --dark-Color-Text-Base1: #111011;
    --dark-Color-Text-Base1: #111011;
}

/* 1. Hide ALL Power Pages elements */
.navbar.navbar-inverse.navbar-static-top,
footer[role="contentinfo"],
.nav.nav-tabs.nav-account,
.breadcrumb,
#content-container form,
#content-container .form-horizontal,
.validation-summary-errors,
.page-heading,
.login-heading-section {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.main-header {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

#CustomFooter {
    display: none !important;
    visibility: hidden !important;
}

/* 2. Main page background - UPDATE THIS */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Allow vertical scrolling */
}

body {
    background: linear-gradient(-90deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 100%),
        url("/signinbackground.png") center center/cover no-repeat fixed;
    background-color: #1a1a1a;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
        sans-serif !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Responsive CSS */
.container {
    padding: 0px var(--Spacing-S96, 16px);
    gap: 750px;
}

.qiddiya-header-nav {
    justify-self: right;
}

.qiddiya-header-nav a {
    color: var(--Color-Text-Nav, #111011);
    display: flex;
    place-items: center;
    gap: 6px;
}

.self-center {
    align-self: anchor-center;
}

.para-container {
    height: -webkit-fill-available;
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.para-container .title {
    color: #fff;
    text-align: center;
    font-family: "Proxima Nova";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
}

.para-container .follow-up-msg {
    width: 464px;
    justify-self: center;
    color: #fff;

    text-align: center;
    /* Eng/H4/Regular */
    font-family: "Proxima Nova";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    /* 145.455% */
}

.custom-card {
    display: flex;
    padding: 48px;
    flex-direction: column;
    gap: 40px;
    border-radius: var(--Spacing-S40, 40px);
    border: 1px solid var(--Color-Primitives-Primitives-100, #f4f4f4);
    background: #fff;
    box-shadow: 0 0 60.4px 0 rgba(0, 0, 0, 0.05);
}

.custom-card-header {
    display: flex;
    flex-direction: column;
}

.custom-card-body {
    display: flex;
    flex-direction: column;
}

.custom-card-footer {
    color: var(--Color-Primitives-Primitives-700, #444344);
    text-align: center;
    /* Eng/BodyL/Regular */
    font-family: "Proxima Nova";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    /* 160% */
}

.custom-card-footer a {
    color: #0f3cc3;
    text-decoration: underline;
}

.custom-card-card-icon {
    display: flex;
    width: 64px;
    height: 64px;
    padding: 14px;
    justify-content: center;
    align-self: center;
    gap: 14px;
    aspect-ratio: 1/1;
    border-radius: 96px;
    border: 1px solid #4995e1;
    background: #4995e1;

    /* regular-shadow/small */
    box-shadow: 0 2px 4px 0 rgba(27, 28, 29, 0.04);
}

.custom-card-title {
    color: #0d0d12;

    text-align: center;
    /* Eng/H2/Bold */
    font-family: "Proxima Nova";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
    /* 150% */
}

.custom-card-subtitle {
    color: #515151;
    text-align: center;

    /* Eng/H4/Regular */
    font-family: "Proxima Nova";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    /* 145.455% */
}

.qiddiya-form-group {
    display: flex;
    flex-direction: column;
}

.qiddiya-form-group .label {
    color: var(--Color-Text-Base1, #111011);
    /* Eng/BodyS/Regular */
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% */
}

.qiddiya-form-group .required {
    color: var(--Color-Feedback-Very-Bad, #e50e0e);
    /* Eng/BodyS/Regular */
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.qiddiya-form-group .text-box {
    border: none;
    border-radius: var(--Spacing-S8, 8px);
    border: 1px solid var(--Color-Border-Stroke, #cecece);
    background: var(--Color-Surface-Cards, #fff);
    height: 48px;
    padding: 8px 16px;
    align-self: stretch;
    width: 100%;
    color: var(--Color-Text-Base1, #111011);
    /* Eng/CaptionL/Regular */
    font-family: "Proxima Nova";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 171.429% */
}

.qiddiya-form-group .text-box::placeholder {
    color: var(--Color-Text-Placeholder, #888788) !important;
    font-family: "Proxima Nova";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 171.429% */
}

.qiddiya-form-group .text-box:focus {
    border-radius: var(--Spacing-S8, 8px) !important;
    border: 1px solid #001b72 !important;
    background: var(--Color-Surface-Cards, #fff);
    /* popup */
    box-shadow: 0 2.385px 14.308px 0 rgba(0, 0, 0, 0.13) !important;
}

.qiddiya-form-group .qiddiya-error-message {
    color: var(--Color-Feedback-Very-Bad, #e50e0e);
    /* Eng/CaptionL/Regular */
    font-family: "Proxima Nova";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 171.429% */
}

.rememberme-container {
    display: flex;
    gap: 4px;
    align-items: center;
}

input[type="radio"],
input[type="checkbox"] {
    margin: 0;
}

.label {
    margin-bottom: 0;
    color: var(--Color-Text-Base1, #111011);
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.gap-4 {
    gap: 4px;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.gap-32 {
    gap: 32px;
}

.gap-64 {
    gap: 64px;
}

.gap-20 {
    gap: 20px;
}

.text-right {
    text-align: right;
}

.custom-card-loginbuton {
    border: none;
    display: flex;
    height: 64px;
    padding: var(--Spacing-S16, 16px);
    justify-content: center;
    align-items: center;
    gap: var(--Spacing-S16, 16px);
    align-self: stretch;
    border-radius: var(--Spacing-S48, 48px);
    background: #001b72;
    color: var(--Color-Text-White, #fff);
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    /* Eng/ButtonXl/Semibold */
    font-family: "Proxima Nova";
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    width: 100%;
    margin-top: 25px;
    /* 145.455% */
}

.custom-card .action-container {
    display: flex;
    flex-direction: column;
}

.p-8 {
    padding: 8px;
}

.p-16 {
    padding: 16px;
}

.p-24 {
    padding: 24px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.page-footer {
    align-items: center;
    padding: 32px 0px;
}

.page-footer .footer-label {
    color: var(--Color-Primitives-Primitives-50, #fff);
    leading-trim: both;
    text-edge: cap;
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% */
}

.page-footer .footer-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    justify-self: right;
}

.page-footer .footer-menu li {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    border-radius: var(--Spacing-S104, 104px);
    background: #4995e1;
}

.page-footer .footer-menu li a {
    color: white;
    margin-bottom: -7px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-box img {
    margin-right: 10px;
    border: 1px solid #ccc;
}

.error {
    color: red;
    font-size: 13px;
    margin-top: 2px;
}

.refreshbtn {
    margin-top: 0px;
    padding: 14px;
    border: none;
    background-color: #1a3de6;
    background-color: #001b72;
    color: white;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
}

#captchaInput {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.qiddiya-header-logo {}

.pageheader {
    padding: 32px 0px;
}

.page-content {
    margin: 0;
}

/* Mobile view */

@media (max-width: 575.98px) {
    body {
        background: none;
        background-color: white;
        min-width: none;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
            sans-serif !important;
        display: flex !important;
        flex-direction: column !important;
    }

    :root {
        --Color-Primitives-Primitives-50: #232323;
        --Color-Text-Nav: #111011;
    }

    .qiddiya-header-logo .logo-2 {
        background: url("/qiddiya-primary-dual-bm-rgb-aw-3-1.png") no-repeat;
        height: 41px;
    }

    .custom-hide-sm {
        display: none !important;
    }

    .custom-card {
        display: flex;
        padding: 0px;
        flex-direction: column;
        gap: 16px;
        border-radius: none;
        border: none;
        background: none;
        box-shadow: none;
    }

    .page-footer {
        gap: 16px;
    }

    .page-footer .footer-menu {
        justify-self: left;
        margin-left: -40px;
    }
}

/*Large View */
@media (min-width: 576px) {
    body {
        background: linear-gradient(-90deg,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.4) 100%),
            url("/signinbackground.png") center center/cover no-repeat fixed;
        background-color: #1a1a1a;
        min-height: 100vh;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
            sans-serif !important;
        display: flex !important;
        flex-direction: column !important;
    }

    :root {
        --Color-Primitives-Primitives-50: #fff;
        --Color-Text-Nav: #fff;
    }

    .custom-hide-sm {
        display: block !important;
    }

    .custom-card {
        display: flex;
        padding: 48px;
        flex-direction: column;
        gap: 40px;
        border-radius: var(--Spacing-S40, 40px);
        border: 1px solid var(--Color-Primitives-Primitives-100, #f4f4f4);
        background: #fff;
        box-shadow: 0 0 60.4px 0 rgba(0, 0, 0, 0.05);
    }

    .page-footer {
        gap: 0px;
    }

    .qiddiya-header-logo .logo-2 {
        background: url("/qiddiya-primary-dual-bm-rgb-aw-31.png") no-repeat;
        height: 41px;
    }

    .page-footer .footer-menu {
        justify-self: center;
        margin-left: auto;
    }
}

.password-toggle-icon {
    position: absolute;
    right: 16px;
    top: 12px;
}

.verified-email {
    position: absolute;
    right: 16px;
    top: 12px;
}

.back-button-container a {
    color: #001b72;
    /* Eng/SubL/Semibold */
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    display: flex;
    gap: 8px;
    /* 150% */
}

.back-button-container .back-label {
    margin-top: -3px;
}

.custom-card-message {
    color: #0d0d12;

    text-align: center;
    /* Eng/H3/Medium */
    font-family: "Proxima Nova";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    /* 133.333% */
}

.custom-card .notice-container {
    display: flex;
    gap: 8px;
    place-items: center;
}







/* ============================================
   RTL (Arabic) Styles - Add at end of file
   ============================================ */

/* Keep CAPTCHA readable in RTL */
html[dir="rtl"] .captcha-box {
    direction: ltr;
    justify-content: flex-end;
}

html[dir="rtl"] #captchaInput {
    direction: ltr;
    text-align: left;
}

/* Fix password toggle and verified email icons for RTL */
html[dir="rtl"] .password-toggle-icon {
    right: auto;
    left: 16px;
}

html[dir="rtl"] .verified-email {
    right: auto;
    left: 16px;
}

/* Fix text alignment for "Forgot password" link */
html[dir="rtl"] .text-right {
    text-align: left !important;
}

/* Keep email input LTR (emails are always LTR) */
html[dir="rtl"] #custom-email {
    direction: ltr;
    text-align: left;
}

/* Mobile RTL fixes */
@media (max-width: 575.98px) {
    html[dir="rtl"] .page-footer .footer-menu {
        justify-self: right;
        margin-left: 0;
        margin-right: -40px;
    }
}