/* ==========================================================
   LOGIN PAGE — ASTRA LAYOUT RESET
   ========================================================== */

body.page-template-default .ms-login-page {
    width: 100vw;
    max-width: none;
    margin-inline-start: calc(50% - 50vw);
    margin-inline-end: calc(50% - 50vw);
}

.ms-login-page {
    min-height: 620px;
}

.ms-login-page .ms-login-shell {
    width: min(100%, 520px);
    margin-inline: auto;
}















/* ==========================================================
   MOHAMED SALEH V2
   LOGIN PAGE
   ========================================================== */


/* ==========================================================
   PAGE
   ========================================================== */

body.page-login {

    background: #F6F8FB;
}


.ms-login-page {

    --ms-blue: #4A7CC6;
    --ms-blue-hover: #356CB8;

    --ms-orange: #F79A10;
    --ms-orange-hover: #E68900;

    --ms-heading: #1B2430;
    --ms-body: #4F5B6A;
    --ms-muted: #7B8794;

    --ms-border: #DCE3EA;

    --ms-soft-blue: #EEF5FD;
    --ms-soft-orange: #FFF4E5;

    width: 100%;

    padding: 72px 24px 88px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(74,124,198,.13),
            transparent 38%
        ),
        #F6F8FB;

    font-family: "Tajawal", sans-serif;

    direction: rtl;
}


.ms-login-page *,
.ms-login-page *::before,
.ms-login-page *::after {

    box-sizing: border-box;
}


/* ==========================================================
   SHELL
   ========================================================== */

.ms-login-shell {

    width: min(100%, 520px);

    margin-inline: auto;
}


/* ==========================================================
   CARD
   ========================================================== */

.ms-login-card {

    position: relative;

    overflow: hidden;

    padding: 40px;

    border: 1px solid var(--ms-border);

    border-radius: 16px;

    background: #FFFFFF;

    box-shadow:
        0 18px 50px
        rgba(27,36,48,.08);
}


.ms-login-card::before {

    content: "";

    position: absolute;

    top: 0;

    right: 0;

    left: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--ms-blue),
            var(--ms-orange)
        );
}


/* ==========================================================
   HEADER
   ========================================================== */

.ms-login-header {

    margin-bottom: 28px;

    text-align: center;
}


.ms-login-badge {

    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 5px 11px;

    border-radius: 999px;

    background: var(--ms-soft-blue);

    color: var(--ms-blue-hover);

    font-size: 13px;

    font-weight: 700;
}


.ms-login-header h1,
.ms-login-card--logged h1 {

    margin: 14px 0 0;

    color: var(--ms-heading);

    font-size: 32px;

    font-weight: 800;

    line-height: 1.4;
}


.ms-login-header p,
.ms-login-card--logged > p {

    max-width: 420px;

    margin: 9px auto 0;

    color: var(--ms-muted);

    font-size: 16px;

    line-height: 1.8;
}


/* ==========================================================
   ALERT
   ========================================================== */

.ms-login-alert {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-bottom: 20px;

    padding: 12px 14px;

    border: 1px solid #F3C6C6;

    border-radius: 9px;

    background: #FFF5F5;

    color: #A33939;

    font-size: 14px;

    line-height: 1.65;
}


.ms-login-alert-icon {

    display: grid;

    width: 20px;

    height: 20px;

    flex: 0 0 20px;

    place-items: center;

    border-radius: 50%;

    background: #A33939;

    color: #FFFFFF;

    font-size: 12px;

    font-weight: 800;
}


/* ==========================================================
   FORM
   ========================================================== */

.ms-login-form {

    display: grid;

    gap: 20px;
}


.ms-login-field {

    display: grid;

    gap: 8px;
}


.ms-login-field label {

    color: var(--ms-heading);

    font-size: 14px;

    font-weight: 700;
}


.ms-login-field input {

    width: 100%;

    min-height: 50px;

    padding: 11px 14px;

    border: 1px solid var(--ms-border);

    border-radius: 9px;

    outline: none;

    background: #FFFFFF;

    color: var(--ms-heading);

    font-family: "Tajawal", sans-serif;

    font-size: 16px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.ms-login-field input:focus {

    border-color: var(--ms-blue);

    box-shadow:
        0 0 0 3px
        rgba(74,124,198,.10);
}


/* ==========================================================
   PASSWORD ROW
   ========================================================== */

.ms-login-password-label {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.ms-login-password-label a {

    color: var(--ms-blue);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;
}


.ms-login-password-label a:hover {

    color: var(--ms-blue-hover);
}


/* ==========================================================
   REMEMBER
   ========================================================== */

.ms-login-options {

    margin-top: -4px;
}


.ms-login-remember {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--ms-body);

    font-size: 14px;

    cursor: pointer;
}


.ms-login-remember input {

    width: 17px;

    height: 17px;

    margin: 0;

    accent-color: var(--ms-blue);
}


/* ==========================================================
   SUBMIT
   ========================================================== */

.ms-login-submit,
.ms-login-primary-button {

    display: inline-flex;

    width: 100%;

    min-height: 50px;

    align-items: center;

    justify-content: center;

    padding: 11px 24px;

    border: 1px solid var(--ms-orange);

    border-radius: 9px;

    background: var(--ms-orange);

    color: #FFFFFF !important;

    font-family: "Tajawal", sans-serif;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.4;

    text-align: center;

    text-decoration: none !important;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(247,154,16,.16);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.ms-login-submit:hover,
.ms-login-primary-button:hover {

    transform: translateY(-1px);

    border-color: var(--ms-orange-hover);

    background: var(--ms-orange-hover);

    color: #FFFFFF !important;
}


/* ==========================================================
   REGISTER
   ========================================================== */

.ms-login-register {

    margin-top: 24px;

    padding-top: 22px;

    border-top: 1px solid #EDF1F5;

    color: var(--ms-muted);

    font-size: 14px;

    text-align: center;
}


.ms-login-register a {

    margin-inline-start: 4px;

    color: var(--ms-blue);

    font-weight: 700;

    text-decoration: none;
}


.ms-login-register a:hover {

    color: var(--ms-blue-hover);
}


/* ==========================================================
   TRUST
   ========================================================== */

.ms-login-trust {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 7px 14px;

    margin-top: 20px;

    color: var(--ms-muted);

    font-size: 12px;
}


.ms-login-trust span::first-letter {

    color: var(--ms-blue);
}


/* ==========================================================
   ALREADY LOGGED IN
   ========================================================== */

.ms-login-card--logged {

    text-align: center;
}


.ms-login-logged-actions {

    display: grid;

    gap: 14px;

    margin-top: 26px;
}


.ms-login-secondary-link {

    color: var(--ms-blue) !important;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-login-page {

        padding:
            56px 20px 72px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 544px) {

    .ms-login-page {

        padding:
            40px 14px 56px;
    }


    .ms-login-card {

        padding:
            28px 20px;

        border-radius:
            13px;
    }


    .ms-login-header {

        margin-bottom:
            24px;
    }


    .ms-login-header h1,
    .ms-login-card--logged h1 {

        font-size:
            27px;
    }


    .ms-login-header p,
    .ms-login-card--logged > p {

        font-size:
            15px;
    }


    .ms-login-password-label {

        align-items:
            flex-start;

        gap:
            12px;
    }


    .ms-login-submit,
    .ms-login-primary-button {

        min-height:
            50px;
    }


    .ms-login-trust {

        flex-direction:
            column;

        align-items:
            center;

        gap:
            6px;
    }

}


/* ==========================================================
   SMALL MOBILE — 390px
   ========================================================== */

@media (max-width: 390px) {

    .ms-login-page {

        padding-inline:
            10px;
    }


    .ms-login-card {

        padding:
            24px 17px;
    }


    .ms-login-header h1,
    .ms-login-card--logged h1 {

        font-size:
            25px;
    }


    .ms-login-field input {

        font-size:
            16px;
    }

}









.ms-login-trust {
    font-size: 13px;
    gap: 8px 16px;
}










.ms-login-remember {
    min-height: 24px;
}

.ms-login-remember input {
    flex: 0 0 17px;
}












.ms-login-card--logged {
    padding-top: 34px;
    padding-bottom: 34px;
}