/* Qassim Nursing Platform — V2-17A5D2-Fix01 authentication branding polish.
   Built on installed Metronic / KTUI components with Health Holding Company identity. */
.qn-auth-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgb(14 165 233 / .10), transparent 28%),
        radial-gradient(circle at 88% 86%, rgb(45 212 191 / .08), transparent 30%),
        linear-gradient(135deg, #f7fafc 0%, #f3f7fb 48%, #f8fbfd 100%);
    font-family: Inter, Cairo, sans-serif;
}
html[dir="rtl"] .qn-auth-body { font-family: Cairo, Inter, sans-serif; }

.qn-auth-language {
    position: fixed;
    z-index: 30;
    top: 1.25rem;
    inset-inline-end: 1.5rem;
}
.qn-auth-language-btn {
    min-height: 2.35rem;
    gap: .5rem;
    background: rgb(255 255 255 / .88);
    border: 1px solid rgb(148 163 184 / .22);
    box-shadow: 0 10px 30px rgb(15 23 42 / .08);
    backdrop-filter: blur(14px);
}
.qn-auth-language-flag {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgb(15 23 42 / .08);
}

.qn-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}
.qn-auth-page-login {
    position: relative;
    isolation: isolate;
}
.qn-auth-page-login::before,
.qn-auth-page-login::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(1px);
}
.qn-auth-page-login::before {
    width: 28rem;
    height: 28rem;
    inset-inline-start: -12rem;
    top: -10rem;
    background: radial-gradient(circle, rgb(14 165 233 / .12), rgb(14 165 233 / 0) 68%);
}
.qn-auth-page-login::after {
    width: 34rem;
    height: 34rem;
    inset-inline-end: -14rem;
    bottom: -18rem;
    background: radial-gradient(circle, rgb(45 212 191 / .10), rgb(45 212 191 / 0) 70%);
}

.qn-auth-shell {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 3rem));
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
    overflow: hidden;
    border: 1px solid rgb(148 163 184 / .18);
    border-radius: 1.5rem;
    background: var(--background);
    box-shadow: 0 30px 90px rgb(15 23 42 / .12);
}
.qn-auth-shell-login {
    width: min(1240px, 100%);
    min-height: min(790px, calc(100vh - 3rem));
    grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
    border-radius: 1.65rem;
    box-shadow:
        0 36px 100px rgb(15 23 42 / .14),
        0 1px 0 rgb(255 255 255 / .82) inset;
}

.qn-auth-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 4vw, 3.35rem);
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgb(56 189 248 / .28), transparent 30%),
        radial-gradient(circle at 88% 86%, rgb(45 212 191 / .18), transparent 28%),
        linear-gradient(145deg, #075985 0%, #0369a1 40%, #1556c0 72%, #1d4ed8 100%);
}
.qn-auth-visual-grid {
    position: absolute;
    z-index: -4;
    inset: 0;
    opacity: .55;
    background-image:
        linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgb(0 0 0 / .86), transparent 96%);
}
.qn-auth-visual-orb,
.qn-auth-visual-ribbon {
    position: absolute;
    z-index: -3;
    pointer-events: none;
}
.qn-auth-visual-orb {
    border-radius: 999px;
    filter: blur(4px);
}
.qn-auth-visual-orb-one {
    width: 23rem;
    height: 23rem;
    inset-inline-start: -11rem;
    top: 29%;
    background: radial-gradient(circle, rgb(56 189 248 / .28), transparent 68%);
}
.qn-auth-visual-orb-two {
    width: 26rem;
    height: 26rem;
    inset-inline-end: -11rem;
    bottom: -8rem;
    background: radial-gradient(circle, rgb(45 212 191 / .22), transparent 69%);
}
.qn-auth-visual-ribbon {
    width: 28rem;
    height: 11rem;
    border-radius: 3.5rem;
    border: 1px solid rgb(255 255 255 / .08);
    background: linear-gradient(120deg, rgb(255 255 255 / .055), rgb(255 255 255 / .01));
    transform: rotate(-27deg);
}
.qn-auth-visual-ribbon-one { inset-inline-end: -13rem; top: 4rem; }
.qn-auth-visual-ribbon-two { inset-inline-start: -13rem; bottom: 4.5rem; transform: rotate(31deg); }

.qn-auth-official-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    max-width: 100%;
    padding: .8rem 1rem .8rem .8rem;
    border: 1px solid rgb(255 255 255 / .20);
    border-radius: 1.15rem;
    background: linear-gradient(135deg, rgb(255 255 255 / .14), rgb(255 255 255 / .075));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 14px 34px rgb(2 24 54 / .13);
    backdrop-filter: blur(14px);
}
html[dir="rtl"] .qn-auth-official-brand { padding: .8rem .8rem .8rem 1rem; }
.qn-auth-hhc-mark {
    width: 4.75rem;
    height: 4.75rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 1rem;
    background: rgb(255 255 255 / .96);
    box-shadow: 0 9px 28px rgb(2 24 54 / .16);
}
.qn-auth-hhc-mark img {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
}
.qn-auth-official-copy strong,
.qn-auth-official-copy span {
    display: block;
}
.qn-auth-official-copy strong {
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.015em;
}
html[dir="rtl"] .qn-auth-official-copy strong { letter-spacing: normal; }
.qn-auth-official-copy span {
    margin-top: .24rem;
    color: rgb(255 255 255 / .72);
    font-size: .76rem;
    line-height: 1.45;
}

.qn-auth-product-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .7rem;
    width: fit-content;
    margin-top: 1rem;
    color: rgb(255 255 255 / .88);
}
.qn-auth-product-mark {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: .72rem;
    border: 1px solid rgb(255 255 255 / .16);
    background: rgb(255 255 255 / .09);
}
.qn-auth-product-mark img { width: 1.8rem; height: 1.55rem; object-fit: contain; }
.qn-auth-product-brand strong,
.qn-auth-product-brand span { display: block; }
.qn-auth-product-brand strong { font-size: .8rem; font-weight: 700; }
.qn-auth-product-brand span { margin-top: .08rem; color: rgb(255 255 255 / .57); font-size: .66rem; }

.qn-auth-visual-copy {
    position: relative;
    z-index: 2;
    margin: auto 0;
    max-width: 36rem;
    padding: 2.8rem 0 2rem;
}
.qn-auth-eyebrow,
.qn-auth-bootstrap-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .72rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}
.qn-auth-eyebrow {
    color: rgb(255 255 255 / .92);
    border: 1px solid rgb(255 255 255 / .14);
    background: rgb(255 255 255 / .10);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .08);
}
.qn-auth-visual-copy h1 {
    max-width: 33rem;
    margin: 1.2rem 0 .88rem;
    font-size: clamp(2rem, 3.1vw, 3.05rem);
    line-height: 1.07;
    letter-spacing: -.045em;
    font-weight: 700;
    text-wrap: balance;
}
html[dir="rtl"] .qn-auth-visual-copy h1 { letter-spacing: normal; line-height: 1.3; }
.qn-auth-visual-copy > p {
    max-width: 33rem;
    margin: 0;
    color: rgb(255 255 255 / .74);
    font-size: .94rem;
    line-height: 1.78;
}
.qn-auth-feature-list {
    display: grid;
    gap: .76rem;
    margin-top: 1.8rem;
}
.qn-auth-feature {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    max-width: 34rem;
    padding: .56rem .7rem .56rem .56rem;
    border: 1px solid transparent;
    border-radius: .9rem;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
html[dir="rtl"] .qn-auth-feature { padding: .56rem .56rem .56rem .7rem; }
.qn-auth-feature:hover {
    background: rgb(255 255 255 / .055);
    border-color: rgb(255 255 255 / .08);
    transform: translateY(-1px);
}
.qn-auth-feature-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / .17);
    border-radius: .88rem;
    background: linear-gradient(145deg, rgb(255 255 255 / .16), rgb(255 255 255 / .08));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
    font-size: 1.15rem;
}
.qn-auth-feature strong { display: block; font-size: .82rem; font-weight: 650; }
.qn-auth-feature small { display: block; margin-top: .18rem; color: rgb(255 255 255 / .62); font-size: .7rem; line-height: 1.52; }
.qn-auth-visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .58rem;
    color: rgb(255 255 255 / .58);
    font-size: .68rem;
}
.qn-auth-visual-footer-dot {
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #a7f3d0;
    background: rgb(16 185 129 / .14);
    border: 1px solid rgb(167 243 208 / .18);
}
.qn-auth-dot { width: .24rem; height: .24rem; border-radius: 50%; background: rgb(255 255 255 / .42); }

.qn-auth-form-panel {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 4.5vw, 4rem);
    background:
        radial-gradient(circle at 100% 0%, rgb(14 165 233 / .035), transparent 26%),
        #fff;
}
.qn-auth-form-panel::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgb(148 163 184 / .18), transparent);
}
.qn-auth-form-wrap { width: min(100%, 27.5rem); }

.qn-auth-mobile-identity {
    display: none;
    align-items: center;
    gap: .85rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.qn-auth-mobile-hhc { width: 3.3rem; height: 3.3rem; object-fit: contain; }
.qn-auth-mobile-divider { width: 1px; height: 2.6rem; background: var(--border); }
.qn-auth-mobile-product { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.qn-auth-mobile-product img { width: 2.6rem; height: 2.6rem; }
.qn-auth-mobile-product strong,
.qn-auth-mobile-product span { display: block; }
.qn-auth-mobile-product strong { color: var(--foreground); font-size: .86rem; }
.qn-auth-mobile-product span { margin-top: .1rem; color: var(--muted-foreground); font-size: .67rem; }

.qn-auth-form-heading {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1.8rem;
}
.qn-auth-section-icon {
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: .9rem;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 9%, white);
    border: 1px solid color-mix(in srgb, var(--primary) 13%, var(--border));
    font-size: 1.18rem;
}
.qn-auth-form-heading h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 1.52rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.026em;
}
html[dir="rtl"] .qn-auth-form-heading h2 { letter-spacing: normal; }
.qn-auth-form-heading p { margin: .4rem 0 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.6; }
.qn-auth-form { display: grid; gap: 1.15rem; }
.qn-auth-field { position: relative; display: grid; gap: .45rem; }
.qn-auth-input {
    min-height: 2.95rem;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.qn-auth-input:hover { background: #fcfdff; }
.qn-auth-input:focus-within {
    border-color: color-mix(in srgb, var(--primary) 72%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 9%, transparent);
    background: #fff;
}
.qn-auth-input input { min-width: 0; }
.qn-auth-password-toggle {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: .45rem;
    color: var(--muted-foreground);
    background: transparent;
    cursor: pointer;
}
.qn-auth-password-toggle:hover { color: var(--foreground); background: var(--muted); }
.qn-auth-link { color: var(--primary); font-size: .75rem; font-weight: 600; }
.qn-auth-link:hover { text-decoration: underline; }
.qn-auth-remember { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; color: var(--secondary-foreground); font-size: .77rem; cursor: pointer; }
.qn-auth-submit {
    width: 100%;
    min-height: 3rem;
    justify-content: center;
    gap: .55rem;
    border-radius: .65rem;
    box-shadow: 0 9px 22px color-mix(in srgb, var(--primary) 20%, transparent);
    font-weight: 650;
}
.qn-auth-submit.is-loading { pointer-events: none; opacity: .82; }
.qn-auth-submit.is-loading::before {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: qn-auth-spin .7s linear infinite;
}
@keyframes qn-auth-spin { to { transform: rotate(360deg); } }
.qn-auth-alert { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: 1rem; font-size: .78rem; line-height: 1.5; }
.qn-auth-alert ul { margin: 0; padding-inline-start: 1rem; }

.qn-auth-form-footer {
    margin-top: 1.45rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}
.qn-auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: .69rem;
    line-height: 1.58;
}
.qn-auth-security-note i { flex: 0 0 auto; color: #16a34a; margin-top: .08rem; }
.qn-auth-language-inline {
    display: inline-flex;
    margin-top: .9rem;
}
.qn-auth-language-inline-toggle {
    min-height: 2.2rem;
    gap: .48rem;
    padding-inline: .55rem;
    color: var(--secondary-foreground);
    border: 1px solid transparent;
}
.qn-auth-language-inline-toggle:hover {
    border-color: var(--border);
    background: var(--muted);
}
.qn-auth-language-inline-toggle .ki-up-down { color: var(--muted-foreground); font-size: .78rem; }
.qn-auth-language-menu { box-shadow: 0 16px 40px rgb(15 23 42 / .14); }

/* Compact auth pages share the same governed identity and visual system as sign-in. */
.qn-auth-page-compact {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 14% 14%, rgb(14 165 233 / .10), transparent 28%),
        radial-gradient(circle at 86% 84%, rgb(45 212 191 / .08), transparent 30%),
        linear-gradient(145deg, #f6f9fc 0%, #f8fbfd 52%, #f3f8fb 100%);
}
.qn-auth-page-compact::before {
    content: "";
    position: fixed;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    inset-inline-end: -16rem;
    top: -15rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgb(14 165 233 / .09), transparent 68%);
    pointer-events: none;
}
.qn-auth-compact-card {
    width: min(100%, 36rem);
    overflow: hidden;
    padding: 0;
    border: 1px solid rgb(148 163 184 / .20);
    border-radius: 1.35rem;
    background: rgb(255 255 255 / .96);
    box-shadow: 0 28px 80px rgb(15 23 42 / .12);
}
.qn-auth-bootstrap-card { width: min(100%, 38rem); }
.qn-auth-compact-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 7rem;
    padding: 1.2rem 1.45rem;
    background:
        radial-gradient(circle at 0% 0%, rgb(56 189 248 / .15), transparent 45%),
        linear-gradient(135deg, #f8fbff 0%, #f4f9fc 100%);
    border-bottom: 1px solid var(--border);
}
.qn-auth-compact-official,
.qn-auth-compact-product {
    display: flex;
    align-items: center;
    gap: .72rem;
    min-width: 0;
}
.qn-auth-compact-official { flex: 1 1 auto; }
.qn-auth-compact-hhc-mark {
    width: 3.85rem;
    height: 3.85rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: .9rem;
    background: #fff;
    border: 1px solid rgb(148 163 184 / .17);
    box-shadow: 0 8px 22px rgb(15 23 42 / .08);
}
.qn-auth-compact-hhc-mark img {
    width: 3.35rem;
    height: 3.35rem;
    object-fit: contain;
}
.qn-auth-compact-official strong,
.qn-auth-compact-official span,
.qn-auth-compact-product strong,
.qn-auth-compact-product span { display: block; }
.qn-auth-compact-official strong { color: var(--foreground); font-size: .86rem; font-weight: 700; line-height: 1.35; }
.qn-auth-compact-official span { margin-top: .12rem; color: var(--muted-foreground); font-size: .67rem; }
.qn-auth-compact-divider { width: 1px; height: 3.4rem; flex: 0 0 auto; background: var(--border); }
.qn-auth-compact-product { flex: 0 1 auto; max-width: 12rem; }
.qn-auth-compact-product > img { width: 2.65rem; height: 2.65rem; flex: 0 0 auto; object-fit: contain; }
.qn-auth-compact-product strong { color: var(--foreground); font-size: .75rem; font-weight: 700; line-height: 1.35; }
.qn-auth-compact-product span { margin-top: .1rem; color: var(--muted-foreground); font-size: .62rem; line-height: 1.35; }
.qn-auth-compact-card > .qn-auth-form-heading,
.qn-auth-compact-card > .qn-auth-alert,
.qn-auth-compact-card > .qn-auth-form,
.qn-auth-compact-card > .qn-auth-empty-state,
.qn-auth-compact-card > form,
.qn-auth-compact-card > .qn-auth-bootstrap-badge,
.qn-auth-compact-card > .qn-auth-bootstrap-note {
    margin-inline: 1.65rem;
}
.qn-auth-compact-card > .qn-auth-form-heading { margin-top: 1.7rem; }
.qn-auth-compact-card > .qn-auth-form,
.qn-auth-compact-card > form { margin-bottom: 1.7rem; }
.qn-auth-bootstrap-badge {
    width: fit-content;
    margin-top: 1.45rem;
    margin-bottom: 1.1rem;
    color: #075985;
    background: rgb(14 165 233 / .09);
    border: 1px solid rgb(14 165 233 / .18);
}
.qn-auth-bootstrap-note { display: flex; align-items: flex-start; gap: .4rem; margin-top: 1.25rem; margin-bottom: 1.4rem; color: var(--muted-foreground); font-size: .7rem; line-height: 1.55; }
.qn-auth-empty-state { display: grid; justify-items: center; text-align: center; padding: 1.6rem 1rem; margin-bottom: 1rem; border: 1px dashed var(--border); border-radius: .9rem; background: var(--muted); }
.qn-auth-empty-state > span,
.qn-auth-info-icon { width: 3.3rem; height: 3.3rem; display: grid; place-items: center; border-radius: 1rem; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); font-size: 1.35rem; }
.qn-auth-empty-state strong { margin-top: .8rem; color: var(--foreground); font-size: .86rem; }
.qn-auth-empty-state p { margin: .35rem 0 0; color: var(--muted-foreground); font-size: .75rem; line-height: 1.6; }
.qn-auth-info-icon { margin: 0 auto 1.1rem; }
.qn-auth-assistance-card { width: min(100%, 35rem); }
.qn-auth-assistance-content { padding: 2rem 2rem 1.6rem; }
.qn-auth-compact-title { margin: 0; color: var(--foreground); font-size: 1.45rem; line-height: 1.25; font-weight: 700; letter-spacing: -.024em; }
html[dir="rtl"] .qn-auth-compact-title { letter-spacing: normal; }
.qn-auth-compact-description { max-width: 26rem; margin: .6rem auto 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.72; }
.qn-auth-assistance-note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 1.5rem 0;
    padding: .9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--primary) 13%, var(--border));
    border-radius: .8rem;
    color: var(--secondary-foreground);
    background: color-mix(in srgb, var(--primary) 4%, white);
    font-size: .72rem;
    line-height: 1.55;
}
.qn-auth-assistance-note i { flex: 0 0 auto; margin-top: .08rem; color: var(--primary); }
.qn-auth-back-action { margin-top: .2rem; }
.qn-auth-compact-footer {
    display: flex;
    align-items: center;
    min-height: 3.8rem;
    padding: .75rem 1.45rem;
    border-top: 1px solid var(--border);
    background: #fbfcfe;
}
.qn-auth-compact-language { display: inline-flex; }

.qn-password-requirements { padding: .85rem .95rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--muted); }
.qn-password-requirements > strong { display: block; margin-bottom: .55rem; color: var(--secondary-foreground); font-size: .72rem; font-weight: 600; }
.qn-password-requirements-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .7rem; }
.qn-password-requirements-grid span { display: flex; align-items: center; gap: .35rem; color: var(--muted-foreground); font-size: .66rem; line-height: 1.35; transition: color .18s ease; }
.qn-password-requirements-grid span i { font-size: .78rem; opacity: .45; }
.qn-password-requirements-grid span.is-met { color: #15803d; }
.qn-password-requirements-grid span.is-met i { opacity: 1; }

@media (max-width: 1020px) {
    .qn-auth-shell-login { grid-template-columns: minmax(0, 1fr) minmax(400px, .92fr); }
    .qn-auth-visual { padding: 2rem; }
    .qn-auth-hhc-mark { width: 4.2rem; height: 4.2rem; }
    .qn-auth-hhc-mark img { width: 3.8rem; height: 3.8rem; }
}

@media (max-width: 920px) {
    .qn-auth-page { padding: 0; align-items: stretch; }
    .qn-auth-shell,
    .qn-auth-shell-login { min-height: 100vh; width: 100%; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
    .qn-auth-visual { display: none; }
    .qn-auth-form-panel { padding: 3.25rem clamp(1.25rem, 7vw, 3rem) 2rem; }
    .qn-auth-form-panel::before { display: none; }
    .qn-auth-mobile-identity { display: flex; }
    .qn-auth-language { top: 1rem; inset-inline-end: 1rem; }
    .qn-auth-page-compact { padding: 1.25rem; }
    .qn-auth-compact-card { width: min(100%, 36rem); }
}

@media (max-width: 520px) {
    .qn-auth-form-panel { place-items: start stretch; padding-top: 2.25rem; }
    .qn-auth-form-wrap { width: 100%; }
    .qn-auth-mobile-hhc { width: 2.8rem; height: 2.8rem; }
    .qn-auth-mobile-product img { width: 2.25rem; height: 2.25rem; }
    .qn-auth-mobile-product strong { font-size: .78rem; }
    .qn-auth-compact-card { border-radius: 1rem; }
    .qn-auth-compact-identity { align-items: flex-start; gap: .75rem; padding: 1rem; }
    .qn-auth-compact-hhc-mark { width: 3.2rem; height: 3.2rem; }
    .qn-auth-compact-hhc-mark img { width: 2.8rem; height: 2.8rem; }
    .qn-auth-compact-divider { height: 3rem; }
    .qn-auth-compact-product > img { width: 2.25rem; height: 2.25rem; }
    .qn-auth-compact-product strong { font-size: .68rem; }
    .qn-auth-compact-product span { font-size: .58rem; }
    .qn-auth-compact-card > .qn-auth-form-heading,
    .qn-auth-compact-card > .qn-auth-alert,
    .qn-auth-compact-card > .qn-auth-form,
    .qn-auth-compact-card > .qn-auth-empty-state,
    .qn-auth-compact-card > form,
    .qn-auth-compact-card > .qn-auth-bootstrap-badge,
    .qn-auth-compact-card > .qn-auth-bootstrap-note { margin-inline: 1.15rem; }
    .qn-auth-assistance-content { padding: 1.55rem 1.2rem 1.3rem; }
    .qn-auth-compact-footer { padding-inline: 1rem; }
    .qn-password-requirements-grid { grid-template-columns: 1fr; }
}
