@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/Cairo-VariableFont_slnt,wght.ttf") format("truetype");
    font-display: swap;
}

:root {
    --ir-auth-navy: #062d51;
    --ir-auth-blue: #0b568f;
    --ir-auth-sky: #78a8d2;
    --ir-auth-gold: #c7a35a;
    --ir-auth-ink: #152c40;
    --ir-auth-muted: #6f8191;
    --ir-auth-line: #dce5ec;
    --ir-auth-cloud: #f2f6f9;
    --ir-auth-white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.ir-auth-page {
    margin: 0;
    color: var(--ir-auth-ink);
    background: var(--ir-auth-cloud);
    font-family: "Cairo", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ir-auth-shell {
    display: grid;
    grid-template-columns: minmax(410px, .88fr) minmax(540px, 1.12fr);
    min-height: 100vh;
}

.ir-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 48px clamp(44px, 5.5vw, 90px) 38px;
    color: var(--ir-auth-white);
    background:
        radial-gradient(circle at 15% 18%, rgba(120, 168, 210, .18), transparent 28%),
        linear-gradient(150deg, #07345e 0%, var(--ir-auth-navy) 55%, #041e37 100%);
    overflow: hidden;
    isolation: isolate;
}

.ir-auth-brand::before {
    position: absolute;
    content: "IBN RUSHD";
    right: -32px;
    bottom: 10%;
    z-index: -1;
    color: transparent;
    font-family: Arial, sans-serif;
    font-size: clamp(5rem, 10vw, 10rem);
    font-weight: 900;
    letter-spacing: -.06em;
    white-space: nowrap;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
}

.ir-auth-brand::after {
    position: absolute;
    content: "";
    left: -150px;
    bottom: -160px;
    z-index: -1;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018);
}

.ir-auth-logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-start;
}

.ir-auth-logo img {
    width: 178px;
    height: auto;
    filter: grayscale(1) brightness(0) invert(1);
}

.ir-auth-brand-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
    padding: 70px 0 50px;
}

.ir-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #a9c7df;
    font-size: .78rem;
    font-weight: 800;
}

.ir-auth-eyebrow i {
    width: 28px;
    height: 2px;
    background: var(--ir-auth-gold);
}

.ir-auth-brand h1 {
    max-width: 620px;
    margin: 24px 0 20px;
    color: var(--ir-auth-white);
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.ir-auth-brand-copy > p {
    max-width: 590px;
    margin: 0;
    color: #bed0df;
    font-size: .97rem;
    line-height: 1.95;
}

.ir-auth-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 48px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .13);
}

.ir-auth-features > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    min-height: 155px;
    padding: 22px 18px;
    background: rgba(5, 41, 73, .78);
}

.ir-auth-features > div > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    color: var(--ir-auth-sky);
    border: 1px solid rgba(120, 168, 210, .32);
    border-radius: 50%;
}

.ir-auth-features strong {
    margin-bottom: 5px;
    color: var(--ir-auth-white);
    font-size: .78rem;
}

.ir-auth-features small {
    color: #9fb6c8;
    font-size: .67rem;
    line-height: 1.65;
}

.ir-auth-brand-footer,
.ir-auth-mobile-footer {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #829db3;
    font-size: .7rem;
}

.ir-auth-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    min-height: 100vh;
    background:
        linear-gradient(rgba(6, 45, 81, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 45, 81, .025) 1px, transparent 1px),
        #f7f9fb;
    background-size: 46px 46px;
}

.ir-auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px clamp(30px, 5vw, 72px);
}

.ir-auth-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4c657a;
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
    transition: color .2s ease;
}

.ir-auth-topbar a:hover {
    color: var(--ir-auth-blue);
}

[dir="ltr"] .ir-auth-topbar > a:first-child i {
    transform: rotate(180deg);
}

.ir-auth-secure-access {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #547087;
    background: var(--ir-auth-white);
    border: 1px solid var(--ir-auth-line);
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 750;
}

.ir-auth-content {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 36px clamp(28px, 6vw, 100px) 78px;
}

.ir-auth-card {
    width: min(100%, 560px);
    padding: clamp(34px, 4.5vw, 58px);
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(6, 45, 81, .1);
    border-radius: 22px;
    box-shadow: 0 28px 65px rgba(6, 45, 81, .11);
}

.ir-login-heading > span {
    color: var(--ir-auth-blue);
    font-size: .76rem;
    font-weight: 850;
}

.ir-login-heading h2 {
    margin: 8px 0 10px;
    color: var(--ir-auth-ink);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 850;
    line-height: 1.3;
}

.ir-login-heading p {
    margin: 0;
    color: var(--ir-auth-muted);
    font-size: .88rem;
    line-height: 1.8;
}

.ir-login-form {
    margin-top: 34px;
}

.ir-form-group {
    margin-bottom: 22px;
}

.ir-form-group label,
.ir-label-row label {
    display: block;
    margin: 0 0 8px;
    color: #334d63;
    font-size: .78rem;
    font-weight: 800;
}

.ir-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ir-label-row a {
    margin-bottom: 8px;
    color: var(--ir-auth-blue);
    font-size: .72rem;
    font-weight: 750;
    text-decoration: none;
}

.ir-input-wrap {
    position: relative;
}

.ir-input-wrap > i {
    position: absolute;
    top: 50%;
    inset-inline-start: 17px;
    z-index: 1;
    color: #89a7bf;
    transform: translateY(-50%);
}

.ir-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 50px;
    color: var(--ir-auth-ink);
    background: #fbfcfd;
    border: 1px solid #d5e1e9;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    font-size: .86rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ir-input-wrap input::placeholder {
    color: #9aacba;
}

.ir-input-wrap input:focus {
    background: var(--ir-auth-white);
    border-color: var(--ir-auth-blue);
    box-shadow: 0 0 0 4px rgba(11, 86, 143, .09);
}

.ir-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 10px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #7e95a7;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transform: translateY(-50%);
}

.ir-password-toggle:hover,
.ir-password-toggle:focus {
    color: var(--ir-auth-blue);
    background: #edf4f9;
    outline: none;
}

.ir-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    color: #526a7e;
    font-size: .76rem;
    cursor: pointer;
}

.ir-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--ir-auth-blue);
}

.ir-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 12px 22px;
    color: var(--ir-auth-white);
    background: var(--ir-auth-blue);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 13px 28px rgba(11, 86, 143, .2);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ir-login-submit:hover,
.ir-login-submit:focus {
    color: var(--ir-auth-white);
    background: var(--ir-auth-navy);
    box-shadow: 0 16px 34px rgba(6, 45, 81, .25);
    outline: none;
    transform: translateY(-2px);
}

[dir="ltr"] .ir-login-submit i {
    transform: rotate(180deg);
}

.ir-register-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    color: var(--ir-auth-muted);
    font-size: .77rem;
}

.ir-register-prompt a {
    color: var(--ir-auth-blue);
    font-weight: 850;
    text-decoration: none;
}

.ir-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 25px 0 0;
    padding-top: 20px;
    color: #8092a1;
    border-top: 1px solid #e5ebf0;
    font-size: .68rem;
    text-align: center;
}

.ir-login-security i {
    color: #4b8a72;
}

.ir-login-form .alert {
    margin: 0 0 20px;
    padding: 12px 14px !important;
    border: 0;
    border-radius: 8px;
    font-size: .76rem !important;
    line-height: 1.65;
}

.ir-login-form .alert p {
    margin: 0;
    font-size: inherit;
}

.ir-auth-card .card-body {
    padding: 20px 0 0 !important;
}

.ir-auth-card .section-title {
    color: var(--ir-auth-ink) !important;
    background: transparent !important;
    font-weight: 850;
}

.ir-auth-card .btn-primary {
    background: var(--ir-auth-blue);
    border-color: var(--ir-auth-blue);
}

.ir-auth-mobile-footer {
    display: none;
    padding: 0 28px 24px;
    color: #8697a5;
    text-align: center;
}

@media (max-width: 1120px) {
    .ir-auth-shell {
        grid-template-columns: minmax(360px, .78fr) minmax(500px, 1.22fr);
    }

    .ir-auth-brand {
        padding-inline: 42px;
    }

    .ir-auth-features {
        grid-template-columns: 1fr;
    }

    .ir-auth-features > div {
        display: grid;
        grid-template-columns: 40px 1fr;
        min-height: auto;
        padding: 15px;
    }

    .ir-auth-features > div > span {
        grid-row: 1 / span 2;
        margin: 0;
    }
}

@media (max-width: 860px) {
    .ir-auth-shell {
        grid-template-columns: 1fr;
    }

    .ir-auth-brand {
        min-height: auto;
        padding: 28px 28px 38px;
    }

    .ir-auth-logo img {
        width: 155px;
    }

    .ir-auth-brand-copy {
        padding: 50px 0 8px;
    }

    .ir-auth-brand h1 {
        max-width: 650px;
        margin: 18px 0 12px;
        font-size: clamp(2rem, 7vw, 3.2rem);
    }

    .ir-auth-features,
    .ir-auth-brand-footer {
        display: none;
    }

    .ir-auth-panel {
        min-height: auto;
    }

    .ir-auth-topbar {
        padding: 24px 28px;
    }

    .ir-auth-content {
        padding: 20px 24px 48px;
    }

    .ir-auth-mobile-footer {
        display: block;
    }
}

@media (max-width: 480px) {
    .ir-auth-brand-copy > p {
        font-size: .84rem;
    }

    .ir-auth-topbar {
        padding: 19px 18px;
    }

    .ir-auth-content {
        padding: 8px 14px 42px;
    }

    .ir-auth-card {
        padding: 31px 22px;
        border-radius: 16px;
    }

    .ir-login-heading h2 {
        font-size: 2rem;
    }

    .ir-register-prompt {
        align-items: flex-start;
        flex-direction: column;
    }
}
