@font-face {
    font-family: "QessCairo";
    src: url("../Fonts/Cairo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: "QessCairo";
    src: url("../Fonts/Cairo-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap
}



:root {
    --q-primary: #0a9b91;
    --q-primary-dark: #08766f;
    --q-navy: #082b4f;
    --q-navy-deep: #041b34;
    --q-bg: #f3f7f9;
    --q-surface: #fff;
    --q-border: #dfe8ec;
    --q-text: #14273a;
    --q-muted: #6c7d8c;
    --q-danger: #c23d4b;
    --q-shadow: 0 28px 80px rgba(8,43,79,.16)
}

html, body {
    min-height: 100%;
    margin: 0;
    font-family: "QessCairo","Segoe UI",sans-serif;
    background: var(--q-bg);
    color: var(--q-text)
}

body {
    overflow-x: hidden
}

.q-auth-layout {
    min-height: 100vh
}

.q-auth-content {
    min-height: 100vh
}

.q-login-page {
    min-height: 100vh;
    padding: clamp(12px,3vw,34px);
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 8% 12%,rgba(10,155,145,.16),transparent 28%),radial-gradient(circle at 92% 90%,rgba(8,43,79,.14),transparent 32%),linear-gradient(145deg,#f7fbfc,#edf4f7)
}

.q-login-shell {
    width: min(1160px,100%);
    min-height: min(720px,calc(100vh - 68px));
    display: grid;
    grid-template-columns: minmax(390px,.95fr) minmax(440px,1.05fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 32px;
    background: var(--q-surface);
    box-shadow: var(--q-shadow)
}

.q-login-brand-panel {
    position: relative;
    isolation: isolate;
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(155deg,var(--q-navy-deep),var(--q-navy) 58%,#075c67)
}

    .q-login-brand-panel:before, .q-login-brand-panel:after {
        content: "";
        position: absolute;
        z-index: -1;
        border-radius: 50%;
        pointer-events: none
    }

    .q-login-brand-panel:before {
        width: 330px;
        height: 330px;
        inset: -115px -105px auto auto;
        background: rgba(19,190,177,.16)
    }

    .q-login-brand-panel:after {
        width: 250px;
        height: 250px;
        inset: auto auto -90px -75px;
        border: 42px solid rgba(255,255,255,.06)
    }

.q-login-brand-top, .q-login-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px
}

.q-login-logo {
    width: 150px;
    max-height: 62px;
    object-fit: contain;
    object-position: start center;
    filter: brightness(0) invert(1)
}

.q-login-brand-content {
    max-width: 470px;
    margin-block: 70px 40px
}

.q-login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: .82rem;
    font-weight: 600
}

.q-login-brand-content h1 {
    font-size: clamp(2rem,3.2vw,3.25rem);
    line-height: 1.35;
    margin: 22px 0 14px;
    font-weight: 700;
    letter-spacing: -.03em
}

.q-login-brand-content > p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 1rem;
    line-height: 1.95
}

.q-login-benefits {
    display: grid;
    gap: 13px;
    margin-top: 34px
}

    .q-login-benefits > div {
        display: flex;
        align-items: center;
        gap: 12px;
        color: rgba(255,255,255,.9);
        font-size: .92rem
    }

    .q-login-benefits i {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: rgba(16,196,181,.16);
        color: #6ff0e4;
        font-size: 1.05rem
    }

.q-login-brand-footer {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.52);
    font-size: .78rem
}

.q-login-form-panel {
    display: grid;
    place-items: center;
    padding: clamp(28px,5vw,72px);
    background: linear-gradient(180deg,#fff,#fbfdfd)
}

.q-login-form-wrap {
    width: min(460px,100%)
}

.q-login-mobile-brand {
    display: none;
    margin-bottom: 30px
}

    .q-login-mobile-brand img {
        width: 125px
    }

.q-login-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 34px
}

.q-login-heading-icon {
    flex: 0 0 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(10,155,145,.11);
    color: var(--q-primary);
    font-size: 1.35rem
}

.q-login-heading span {
    display: block;
    color: var(--q-primary-dark);
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 4px
}

.q-login-heading h2 {
    margin: 0;
    color: var(--q-navy);
    font-size: clamp(1.65rem,2.2vw,2.15rem);
    font-weight: 700
}

.q-login-heading p {
    margin: 7px 0 0;
    color: var(--q-muted);
    font-size: .9rem;
    line-height: 1.75
}

.q-login-form {
    display: grid;
    gap: 19px
}

.q-field-group {
    display: grid;
    gap: 8px
}

    .q-field-group label {
        font-size: .86rem;
        font-weight: 600;
        color: #294054
    }

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

.q-input-wrap {
    position: relative
}

    .q-input-wrap > i {
        position: absolute;
        inset-inline-start: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        color: #8495a3;
        font-size: 1rem
    }

    .q-input-wrap .form-control {
        height: 54px;
        padding-inline-start: 48px;
        border: 1px solid var(--q-border);
        border-radius: 15px;
        background: #fbfcfd;
        color: var(--q-text);
        font-size: .94rem;
        box-shadow: none;
        transition: .2s ease
    }

        .q-input-wrap .form-control:hover {
            border-color: #bdd0d6
        }

        .q-input-wrap .form-control:focus {
            border-color: var(--q-primary);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(10,155,145,.1)
        }

.q-password-wrap .form-control {
    padding-inline-end: 50px
}

.q-password-toggle {
    position: absolute;
    inset-inline-end: 8px;
    top: 7px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #667b89;
    transition: .2s
}

    .q-password-toggle:hover {
        background: #edf6f5;
        color: var(--q-primary-dark)
    }

.q-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--q-primary-dark);
    font-size: .8rem;
    font-weight: 600
}

    .q-link-button:hover {
        text-decoration: underline
    }

.validation-message {
    color: var(--q-danger);
    font-size: .76rem
}

.q-login-submit, .q-register-button {
    width: 100%;
    height: 54px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 700;
    transition: .2s ease
}

.q-login-submit {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg,var(--q-primary),#087985);
    box-shadow: 0 13px 26px rgba(10,155,145,.22)
}

    .q-login-submit:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 16px 30px rgba(10,155,145,.28)
    }

    .q-login-submit:disabled {
        opacity: .55;
        cursor: not-allowed;
        box-shadow: none
    }

.q-register-button {
    border: 1px solid #cbdde1;
    color: var(--q-navy);
    background: #fff
}

    .q-register-button:hover {
        border-color: var(--q-primary);
        color: var(--q-primary-dark);
        background: #f5fbfa
    }

.q-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9aabb6;
    font-size: .75rem
}

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

.q-login-help {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 25px 0 0;
    color: var(--q-muted);
    font-size: .76rem;
    line-height: 1.7;
    text-align: center
}

    .q-login-help i {
        color: var(--q-primary);
        margin-top: 3px
    }

.q-auth-layout .k-loader-container {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important
}

.q-auth-layout .k-dialog-wrapper {
    z-index: 100000 !important
}

[dir="ltr"] .q-login-brand-content h1 {
    letter-spacing: -.04em
}

@media(max-width:900px) {
    .q-login-page {
        padding: 0;
        place-items: stretch
    }

    .q-login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        grid-template-columns: 1fr
    }

    .q-login-brand-panel {
        display: none
    }

    .q-login-form-panel {
        padding: 32px 22px
    }

    .q-login-mobile-brand {
        display: flex
    }

        .q-login-mobile-brand img {
            filter: none
        }

    .q-login-form-wrap {
        width: min(500px,100%)
    }

    .q-login-heading {
        margin-top: 24px
    }
}

@media(max-width:520px) {
    .q-login-form-panel {
        padding: 24px 18px
    }

    .q-login-mobile-brand {
        margin-bottom: 22px
    }

    .q-login-heading {
        gap: 12px;
        margin-bottom: 27px
    }

    .q-login-heading-icon {
        flex-basis: 46px;
        height: 46px;
        border-radius: 14px
    }

    .q-login-heading p {
        font-size: .83rem
    }

    .q-input-wrap .form-control, .q-login-submit, .q-register-button {
        height: 52px
    }

    .q-login-help {
        padding-inline: 10px
    }
}
