:root {
    --lc-dark: #12212b;
    --lc-muted: #667785;
    --lc-primary: #1c4e66;
    --lc-primary-dark: #123747;
    --lc-primary-deep: #0b2936;
    --lc-teal: #039397;
    --lc-green: #8fc360;
    --lc-border: rgba(28, 78, 102, .17);
    --lc-soft: #edf7f5;
    --lc-gradient: linear-gradient( 135deg, var(--lc-green) 0%, var(--lc-teal) 100% );
    --lc-dark-gradient: linear-gradient( 135deg, var(--lc-primary-deep) 0%, var(--lc-primary) 65%, #276b72 100% );
}

html,
body {
    height: 100%;
    margin: 0;
}

body:has(.login-center-page) {
    height: 100dvh;
    overflow: hidden !important;
    background: #f5faf8;
}

body:has(.login-center-page) main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

.login-center-page {
    direction: rtl;
    width: 100%;
    height: calc(100dvh - 105px);
    min-height: 0;
    padding: 10px 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 12% 12%, rgba(15, 118, 110, .10), transparent 27rem),
        radial-gradient(circle at 88% 8%, rgba(217, 171, 50, .08), transparent 24rem),
        linear-gradient(135deg, #f8fbfa, #edf6f2);
}

.login-center-card {
    width: min(480px, 100%);
    max-height: 100%;
    padding: 16px 24px 18px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .13);
}

.login-center-card::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -105px;
    right: -85px;
    border-radius: 50%;
    background: rgba(15, 118, 110, .08);
    pointer-events: none;
}

.login-center-card > * {
    position: relative;
    z-index: 1;
}

.login-center-logo {
    width: 200px;
    height: 180px;
    margin: 0 auto 10px;
    padding: 5px;
    border: 1px solid var(--lc-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .09);
}

    .login-center-logo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        object-position: center;
        border-radius: 13px;
    }

.login-center-head {
    margin-bottom: 11px;
    text-align: center;
}

.login-center-head h1 {
    margin: 0 0 3px;
    color: var(--lc-dark);
    font-size: 1.4rem;
    font-weight: 1000;
}

.login-center-head p {
    margin: 0;
    color: var(--lc-muted);
    font-size: .78rem;
    font-weight: 700;
}

.login-center-alert {
    margin-bottom: 9px;
    padding: 8px 10px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    color: #991b1b;
    font-size: .74rem;
    font-weight: 800;
}

.login-center-alert:empty {
    display: none;
}

.login-center-field {
    margin-bottom: 8px;
}

.login-center-field label {
    display: block;
    margin-bottom: 4px;
    color: #12372f;
    font-size: .8rem;
    font-weight: 950;
}

.login-center-input-wrap {
    position: relative;
}

.login-center-field-icon {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #82919e;
    pointer-events: none;
    z-index: 2;
}

.login-center-control {
    width: 100%;
    height: 41px;
    padding-inline: 43px;
    border: 1px solid #d5dfdc;
    border-radius: 13px;
    background: #fbfdfd;
    color: var(--lc-dark);
    font-size: .84rem;
    font-weight: 750;
    box-shadow: none !important;
}

.login-center-control:focus {
    border-color: var(--lc-green-700);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .10) !important;
}

.login-center-password {
    padding-inline-end: 46px;
}

.login-center-password-toggle {
    position: absolute;
    inset-inline-end: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #82919e;
}

.login-center-password-toggle:hover {
    background: #edf4f1;
    color: var(--lc-green-900);
}

.login-center-submit {
    width: 100%;
    height: 42px;
    margin-top: 1px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient( 135deg, var(--lc-purple-light), var(--lc-purple-dark) );
    font-size: .88rem;
    font-weight: 1000;
    box-shadow: 0 13px 26px rgba(59, 20, 95, .27);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

    .login-center-submit:hover {
        color: #fff;
        background: linear-gradient( 135deg, #6a3296, var(--lc-purple) );
        transform: translateY(-1px);
        box-shadow: 0 16px 30px rgba(59, 20, 95, .34);
    }

    .login-center-submit:focus {
        color: #fff;
        background: linear-gradient( 135deg, var(--lc-purple-light), var(--lc-purple-dark) );
        box-shadow: 0 0 0 4px rgba(59, 20, 95, .17) !important;
    }

    .login-center-submit:active {
        color: #fff;
        transform: translateY(0);
    }

.login-center-submit:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(.98);
}

.login-center-admin-link {
    margin-top: 8px;
    text-align: center;
}

.login-center-admin-link .btn {
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 850;
}

.login-center-divider {
    margin: 8px 0 6px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #94a3b8;
    font-size: .7rem;
    font-weight: 850;
}

.login-center-divider::before,
.login-center-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e2e8f0;
}

.login-center-support {
    padding: 8px 10px;
    border: 1px solid #e1e9e6;
    border-radius: 14px;
    background: linear-gradient(145deg, #fafdfc, #f2f7f5);
}

.login-center-support-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--lc-muted);
    font-size: .71rem;
    font-weight: 750;
    line-height: 1.4;
}

.login-center-support-note i {
    color: var(--lc-green-700);
}

.login-center-links {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.login-center-links a {
    color: var(--lc-green-900);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 900;
}

.login-center-links a:hover {
    text-decoration: underline;
}

.text-danger.small {
    display: block;
    margin-top: 3px;
    font-size: .68rem;
    font-weight: 800;
}

@media (max-height: 760px) {
    .login-center-page {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .login-center-card {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login-center-logo {
        height: 120px;
        margin-bottom: 6px;
    }

    .login-center-head {
        margin-bottom: 8px;
    }

    .login-center-head h1 {
        font-size: 1.25rem;
    }

    .login-center-support-note {
        display: none;
    }

    .login-center-links {
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .login-center-page {
        height: calc(100dvh - 95px);
        padding: 7px 6px;
    }

    .login-center-card {
        width: min(440px, 100%);
        padding: 13px 14px 15px;
        border-radius: 20px;
    }

    .login-center-logo {
        width: min(320px, 95%);
        height: clamp(110px, 18vh, 150px);
    }

    .login-center-links {
        justify-content: center;
    }
}

/* =========================================================
   هوية شركة أدر لصفحة تسجيل الدخول
========================================================= */

body:has(.login-center-page) {
    background: #f5f9f8 !important;
}

.login-center-page {
    background: radial-gradient( circle at 12% 12%, rgba(143, 195, 96, .12), transparent 27rem ), radial-gradient( circle at 88% 8%, rgba(3, 147, 151, .10), transparent 24rem ), linear-gradient( 135deg, #ffffff, #edf6f4 ) !important;
}

/* بطاقة تسجيل الدخول */
.login-center-card {
    border-color: rgba(28, 78, 102, .17) !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 22px 55px rgba(28, 78, 102, .13) !important;
}

    .login-center-card::before {
        background: rgba(143, 195, 96, .11) !important;
    }

/* الشعار */
.login-center-logo {
    border-color: rgba(28, 78, 102, .17) !important;
    background: #fff !important;
    box-shadow: 0 10px 25px rgba(28, 78, 102, .10) !important;
}

/* عنوان تسجيل الدخول */
.login-center-head h1 {
    color: var(--lc-primary-dark) !important;
}

.login-center-head p {
    color: var(--lc-muted) !important;
}

/* عناوين الحقول */
.login-center-field label {
    color: var(--lc-primary-dark) !important;
}

/* أيقونات الحقول */
.login-center-field-icon {
    color: var(--lc-teal) !important;
}

/* حقول الإدخال */
.login-center-control {
    color: var(--lc-dark) !important;
    background: #fbfdfd !important;
    border-color: rgba(28, 78, 102, .19) !important;
}

    .login-center-control:hover {
        border-color: rgba(3, 147, 151, .38) !important;
    }

    .login-center-control:focus {
        border-color: var(--lc-teal) !important;
        background: #fff !important;
        box-shadow: 0 0 0 4px rgba(3, 147, 151, .11) !important;
    }

/* زر إظهار كلمة المرور */
.login-center-password-toggle {
    color: var(--lc-primary) !important;
}

    .login-center-password-toggle:hover {
        color: #fff !important;
        background: var(--lc-gradient) !important;
    }

/* زر تسجيل الدخول */
.login-center-submit {
    color: #fff !important;
    background: var(--lc-gradient) !important;
    box-shadow: 0 13px 26px rgba(3, 147, 151, .25) !important;
}

    .login-center-submit:hover {
        color: #fff !important;
        background: var(--lc-dark-gradient) !important;
        transform: translateY(-1px);
        box-shadow: 0 16px 30px rgba(28, 78, 102, .27) !important;
        filter: none !important;
    }

    .login-center-submit:focus {
        color: #fff !important;
        background: var(--lc-gradient) !important;
        box-shadow: 0 0 0 4px rgba(3, 147, 151, .17) !important;
    }

    .login-center-submit:active {
        color: #fff !important;
        transform: translateY(0);
    }

/* رابط دخول الإدارة */
.login-center-admin-link .btn {
    color: var(--lc-primary) !important;
    background: var(--lc-soft) !important;
    border-color: rgba(3, 147, 151, .23) !important;
}

    .login-center-admin-link .btn:hover {
        color: #fff !important;
        background: var(--lc-gradient) !important;
        border-color: transparent !important;
    }

/* الخط الفاصل */
.login-center-divider::before,
.login-center-divider::after {
    background: rgba(28, 78, 102, .14) !important;
}

/* صندوق المساعدة */
.login-center-support {
    border-color: rgba(28, 78, 102, .14) !important;
    background: linear-gradient( 145deg, #ffffff, #edf7f5 ) !important;
}

.login-center-support-note i {
    color: var(--lc-teal) !important;
}

/* روابط الصفحة */
.login-center-links a {
    color: var(--lc-primary) !important;
}

    .login-center-links a:hover {
        color: var(--lc-teal) !important;
    }

/* رسائل التحقق */
.text-danger.small {
    color: #b91c1c !important;
}

/* =========================================================
   LOGIN - QUDORATI NEW THEME
   الهوية الجديدة لمنصة قدراتي
========================================================= */

:root {
    --lc-dark: #172033;
    --lc-muted: #778396;
    --lc-primary: #0A2D4A;
    --lc-primary-dark: #071F34;
    --lc-primary-deep: #061A2B;
    --lc-blue: #29ABE2;
    --lc-blue-dark: #168FC3;
    --lc-green: #6DC067;
    --lc-orange: #F7A127;
    --lc-border: #E3EBF1;
    --lc-soft: #F3F8FB;
    --lc-gradient: linear-gradient( 135deg, #29ABE2, #168FC3 );
    --lc-dark-gradient: linear-gradient( 135deg, #0A2D4A, #123F62 65%, #0D6E9E );
}


/* =========================================================
   الخط
========================================================= */

.login-center-page,
.login-center-page *,
.login-center-page input,
.login-center-page button,
.login-center-page a {
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}


/* =========================================================
   خلفية الصفحة
========================================================= */

body:has(.login-center-page) {
    background: #F4F8FB !important;
}


.login-center-page {
    background: radial-gradient( circle at 10% 10%, rgba(41,171,226,.09), transparent 27rem ), radial-gradient( circle at 90% 8%, rgba(109,192,103,.07), transparent 24rem ), linear-gradient( 135deg, #FFFFFF, #F1F7FA ) !important;
}


/* =========================================================
   بطاقة تسجيل الدخول
========================================================= */

.login-center-card {
    border: 1px solid rgba(10,45,74,.12) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.985) !important;
    box-shadow: 0 18px 48px rgba(10,45,74,.11) !important;
}


    .login-center-card::before {
        background: rgba(41,171,226,.075) !important;
    }


/* =========================================================
   الشعار
   نبقي الأبعاد التي أثبتت أنها مناسبة
========================================================= */

.login-center-logo {
    width: 200px !important;
    height: 180px !important;
    margin: 0 auto 9px !important;
    padding: 5px !important;
    border: 1px solid rgba(41,171,226,.17) !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 9px 23px rgba(10,45,74,.085) !important;
}


    .login-center-logo img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 13px !important;
    }


/* =========================================================
   العنوان
========================================================= */

.login-center-head h1 {
    color: var(--lc-primary) !important;
    font-size: 1.20rem !important;
    font-weight: 900 !important;
}


.login-center-head p {
    color: var(--lc-muted) !important;
    font-size: .72rem !important;
    font-weight: 500 !important;
}


/* =========================================================
   Labels
========================================================= */

.login-center-field label {
    color: var(--lc-primary) !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
}


/* =========================================================
   Inputs
========================================================= */

.login-center-control {
    height: 41px !important;
    border: 1px solid #DDE7EE !important;
    border-radius: 11px !important;
    color: var(--lc-dark) !important;
    background: #FAFCFD !important;
    font-size: .72rem !important;
    font-weight: 600 !important;
}


    .login-center-control:hover {
        border-color: rgba(41,171,226,.34) !important;
    }


    .login-center-control:focus {
        border-color: var(--lc-blue) !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(41,171,226,.09) !important;
    }


/* أيقونات الحقول */

.login-center-field-icon {
    color: var(--lc-blue) !important;
}


/* =========================================================
   إظهار كلمة المرور
========================================================= */

.login-center-password-toggle {
    color: var(--lc-primary) !important;
}


    .login-center-password-toggle:hover {
        color: #fff !important;
        background: var(--lc-blue) !important;
    }


/* =========================================================
   زر الدخول
========================================================= */

.login-center-submit {
    height: 41px !important;
    border-radius: 11px !important;
    color: #fff !important;
    background: var(--lc-gradient) !important;
    font-size: .75rem !important;
    font-weight: 850 !important;
    box-shadow: 0 8px 20px rgba(41,171,226,.20) !important;
}


    .login-center-submit:hover {
        color: #fff !important;
        background: var(--lc-dark-gradient) !important;
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(10,45,74,.19) !important;
        filter: none !important;
    }


    .login-center-submit:focus {
        color: #fff !important;
        background: var(--lc-gradient) !important;
        box-shadow: 0 0 0 4px rgba(41,171,226,.13) !important;
    }


/* =========================================================
   دخول الإدارة
========================================================= */

.login-center-admin-link .btn {
    color: var(--lc-primary) !important;
    background: rgba(41,171,226,.055) !important;
    border-color: rgba(41,171,226,.18) !important;
    font-size: .63rem !important;
}


    .login-center-admin-link .btn:hover {
        color: #fff !important;
        background: var(--lc-primary) !important;
        border-color: var(--lc-primary) !important;
    }


/* =========================================================
   Divider
========================================================= */

.login-center-divider {
    color: #95A2AF !important;
    font-size: .61rem !important;
}


    .login-center-divider::before,
    .login-center-divider::after {
        background: #E4EBF0 !important;
    }


/* =========================================================
   الدعم
========================================================= */

.login-center-support {
    border: 1px solid #E2EAF0 !important;
    border-radius: 12px !important;
    background: linear-gradient( 145deg, #FFFFFF, #F4F9FC ) !important;
}


.login-center-support-note {
    color: var(--lc-muted) !important;
    font-size: .63rem !important;
    font-weight: 500 !important;
}


    .login-center-support-note i {
        color: var(--lc-green) !important;
    }


/* =========================================================
   روابط الصفحة
========================================================= */

.login-center-links a {
    color: var(--lc-blue-dark) !important;
    font-size: .63rem !important;
    font-weight: 750 !important;
}


    .login-center-links a:hover {
        color: var(--lc-primary) !important;
    }


/* =========================================================
   Validation
========================================================= */

.text-danger.small {
    color: #B42318 !important;
    font-size: .61rem !important;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 520px) {

    .login-center-logo {
        width: min(200px, 82%) !important;
        height: 150px !important;
    }
}
