@font-face {
    font-family: "Parwarda";
    src: url(/Assets/Fonts/Parwarda.otf);
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSharpMobile";
    src: url(/Assets/Fonts/Kurdish.ttf);
    font-style: normal;
}

@font-face {
    font-family: Roboto;
    src: url(/Assets/Fonts/Roboto.ttf);
    font-weight: normal;
    font-style: normal;
}

html[dir=ltr] {
    --bs-font-sans-serif: "Parwarda", Roboto, "IRANSharpMobile", sans-serif !important;
}

html[dir=rtl] {
    --bs-font-sans-serif: "Parwarda", "IRANSharpMobile", sans-serif !important;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Parwarda", "IRANSharpMobile", sans-serif !important;
}

.q-login2-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-image: url('/Assets/Images/q-loginB.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 1rem 0;
    font-family: "Parwarda", var(--bs-font-sans-serif, 'IRANSharpMobile', sans-serif) !important;
    color: #ffffff;
}

/* ── Main Layout Wrapper ────── */
.q-login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Header Row Section ────── */
.q-login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1050px;
    margin-top: 1rem;
    margin-bottom: 0;
    direction: ltr !important;
    gap: 1.5rem;
}

.q-header-col {
    display: flex;
    flex-direction: column;
}

.q-header-en {
    flex: 1;
    align-items: flex-end;
    text-align: right;
    direction: ltr;
    margin: 0;
    padding: 0;
}

.q-header-icon {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.q-icon-webm {
    /* width: 250px; */
    height: 215px;
    object-fit: contain;
    /* filter: drop-shadow(0 4px 20px rgba(0, 217, 255, 0.45)); */
}

.q-header-ku {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    direction: ltr;
    margin: 0;
    padding: 0;
}

.q-title-en {
    font-size: 2.5rem;
    font-weight: 400;
    color: rgb(5, 186, 252);
    margin: 0;
    line-height: 1.2;
    /* text-shadow: 0 2px 14px rgba(5, 186, 252, 0.45); */
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.q-sub-en {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0.25rem 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.q-title-ku {
    font-size: 2.5rem;
    font-weight: 400;
    color: rgb(5, 186, 252);
    margin: 0;
    line-height: 1.2;
    /* text-shadow: 0 2px 14px rgba(5, 186, 252, 0.45); */
    white-space: nowrap;
}

.q-sub-ku {
    font-size: 1.3rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0.25rem 0 0 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ── Middle Main Row Section ────── */
.q-login-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1550px;
    margin-top: 0.5rem;
    margin-bottom: auto;
    direction: ltr !important;
}

.q-side-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 35;
}

.q-side-krg {
    order: 1;
    align-items: flex-end;
    padding-right: 2rem;
}

.q-login2-card-animated-border {
    order: 2;
    flex: 0 0 auto;
}

.q-side-moe {
    order: 3;
    align-items: flex-start;
    padding-left: 2rem;
}

.q-side-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    overflow: hidden;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    z-index: 35;
}

.q-side-group::before {
    content: '';
    position: absolute;
    top: -50%;
    right: 0;
    height: 600px;
    width: 28px;
    background: rgba(255, 255, 255, 0.45);
    filter: blur(2px);
    transform: rotate(-25deg) translate(350px, -100px);
    pointer-events: none;
    z-index: 15;
    animation: q-logo-shine ease-in-out 9s infinite;
}

@keyframes q-logo-shine {
    0% {
        transform: rotate(-25deg) translate(600px, -200px);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    30% {
        transform: rotate(-25deg) translate(-600px, 200px);
        opacity: 1;
    }

    35% {
        transform: rotate(-25deg) translate(-750px, 250px);
        opacity: 0;
    }

    36% {
        transform: rotate(-25deg) translate(600px, -200px);
        opacity: 0;
    }

    100% {
        transform: rotate(-25deg) translate(600px, -200px);
        opacity: 0;
    }
}

.q-side-logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    height: auto;
}

.q-side-logo-img.q-krg-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.45));
    margin-bottom: 1.2rem;
}

.q-side-flag-bar {
    height: 200px;
    width: auto;
    object-fit: contain;
}

.q-moe-divider-line {
    width: 3px;
    height: 200px;
    background: linear-gradient(180deg, #00f2fe 0%, #0088ff 50%, #00f2fe 100%);
    border-radius: 3px;
    z-index: 35;
}

.q-side-logo-img.q-moe-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.45));
    margin-bottom: 1.2rem;
}

.q-side-logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
}

.q-sun-wrapper {
    position: fixed;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(200px, 28vw, 380px);
    height: calc(clamp(200px, 28vw, 380px) / 2);
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.q-sun-img {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(200px, 28vw, 380px);
    height: clamp(200px, 28vw, 380px);
    animation: q-sun-spin 40s linear infinite;
    transform-origin: center center;
    opacity: 0.8;
}

@keyframes q-sun-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes rotateBorderLight {
    to {
        --border-angle: 360deg;
    }
}

.q-login2-card-animated-border {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 80px;
    padding: 2px;
    background: conic-gradient(from var(--border-angle) at 50% 50%, #00d9ff 0deg, #0055ff 45deg, transparent 150deg, #00f2fe 270deg, #00d9ff 360deg);
    animation: rotateBorderLight 8s linear infinite;
    box-shadow: 0 0 90px rgba(147, 51, 234, 0.42), 0 0 140px rgba(124, 58, 237, 0.28), 0 20px 60px rgba(0, 217, 255, 0.35);
    z-index: 10;
}

.q-login2-card-animated-border::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 80px;
    background: conic-gradient(from var(--border-angle) at 50% 50%, #00d9ff 0deg, #0055ff 45deg, transparent 150deg, #00f2fe 270deg, #00d9ff 360deg);
    filter: blur(32px);
    opacity: 0.8;
    z-index: -1;
    animation: rotateBorderLight 8s linear infinite;
}

.q-login2-card-animated-border::after {
    content: '';
    position: absolute;
    top: -90px;
    left: -90px;
    right: -90px;
    bottom: -90px;
    border-radius: 140px;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.45) 0%, rgba(124, 58, 237, 0.25) 45%, rgba(99, 102, 241, 0.1) 70%, transparent 85%);
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

.q-login2-card {
    position: relative;
    width: 100%;
    border-radius: 78px;
    padding: 1.8rem 2.2rem 1.6rem 2.2rem;
    background: linear-gradient(180deg, #0012e6 0%, #0057ff 45%, #00c3ff 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.q-card-top-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.login-title {
    text-align: start;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.35rem;
    text-shadow: 0 2px 10px rgba(0, 217, 255, 0.5);
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

[dir=ltr] .login-title {
    text-align: left;
    margin-left: 10px !important;
}

[dir=rtl] .login-title {
    text-align: right;
    margin-right: 10px !important;
}

/* Independent, un-connected language card buttons */
.lang-pills-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: transparent !important;
    border: none !important;
    padding: 0;
    margin-bottom: 1rem;
    box-shadow: none !important;
}

.lang-pill {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 50, 180, 0.55);
    color: #ffffff !important;
    padding: 0.42rem 0.5rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
}

/* Active language button style */
.lang-pill.active {
    background: #00d9ff !important;
    border-color: #00d9ff !important;
    color: #001a4d !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.5);
}

.lang-pill.active2 {
    background: #101cac !important;
    border-color: #00d9ff !important;
    color: #e0f7fa !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(31, 81, 255, 0.5) !important;
}

.lang-pill:hover:not(.active2) {
    background: rgba(0, 180, 255, 0.4);
    border-color: #00d9ff;
    color: #ffffff !important;
}

.field-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 0.45rem 0.6rem;
    margin-bottom: 1.1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir=rtl] .field-pill {
    direction: rtl !important;
}

[dir=ltr] .field-pill {
    direction: ltr !important;
}

.field-pill:focus-within {
    border-color: #00d9ff;
    box-shadow: 0 0 22px rgba(0, 217, 255, 0.5), inset 0 0 10px rgba(0, 217, 255, 0.2);
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.field-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.35) 0%, rgba(0, 85, 255, 0.35) 100%);
    border: 1px solid rgba(0, 217, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
    transition: all 0.25s ease;
}

[dir=rtl] .field-icon-badge {
    margin-right: 0;
    margin-left: 0.6rem;
}

.field-pill:focus-within .field-icon-badge {
    background: linear-gradient(135deg, #00d9ff 0%, #0055ff 100%);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.7);
}

.field-input,
.field-input.form-control {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    font-family: inherit;
    text-align: start;
    letter-spacing: 0.4px;
}

[dir=ltr] .field-input,
[dir=ltr] .field-input.form-control {
    text-align: left;
}

[dir=rtl] .field-input,
[dir=rtl] .field-input.form-control {
    text-align: right;
}

.field-input::placeholder,
.field-input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
}

/* Hide native browser password reveal (black eye icon in Edge/Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-password-toggle-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Browser Autofill (Saved Password & Username) White Text Override */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.field-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
    background-color: transparent !important;
    box-shadow: 0 0 0px 1000px rgba(0, 85, 255, 0.25) inset !important;
    border-radius: 30px !important;
}

.field-input:autofill {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

.btn-show-pw {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir=rtl] .btn-show-pw {
    margin-right: auto;
    margin-left: 0;
}

[dir=ltr] .btn-show-pw {
    margin-left: auto;
    margin-right: 0;
}

.btn-show-pw:hover {
    color: #00d9ff !important;
    transform: scale(1.1);
}

/* Suppress any auto-injected duplicate eye icons from Sneat theme scripts */
.field-pill .input-group-text,
.field-pill span.cursor-pointer,
.field-pill .input-group-merge {
    display: none !important;
}

.modern-2fa-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 0.4rem 0.5rem;
    margin-bottom: 1.1rem;
    transition: all 0.25s ease;
}

[dir=rtl] .modern-2fa-pill,
body[dir=rtl] .modern-2fa-pill,
html[dir=rtl] .modern-2fa-pill {
    direction: rtl !important;
}

.captcha-canvas-wrap {
    flex: 1;
    min-width: 0;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);
}

#captchaCanvasQ {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
}

.btn-2fa-refresh {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.4);
    color: #00d9ff !important;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-2fa-refresh:hover {
    background: #00d9ff;
    color: #001a4d !important;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.6);
    transform: rotate(90deg);
}

.input-2fa-answer,
.input-2fa-answer.form-control {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 217, 255, 0.6) !important;
    color: #001a4d !important;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.3) !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.input-2fa-answer:focus,
.input-2fa-answer.form-control:focus {
    border-color: #00d9ff !important;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.7) !important;
    background: #ffffff !important;
}

.btn-signin {
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(180deg, #0055ff 0%, #0033bb 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 0.75rem;
    cursor: pointer;
    margin-top: 0.4rem;
    box-shadow: 0 2px 10px rgba(0, 50, 180, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.btn-signin:hover:not(:disabled) {
    background: linear-gradient(180deg, #0055ff 0%, #0033bb 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 50, 180, 0.55);
    transform: translateY(-2px);
}

.btn-signin:active:not(:disabled) {
    transform: translateY(-1px) scale(0.99);
}

.btn-signin:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.error-box {
    margin-top: 0.4rem;
    color: #ffffff !important;
}

.validation-summary-errors {
    color: #ff4d4d !important;
}

.fv-plugins-icon,
.fv-plugins-bootstrap5-icon,
.fv-plugins-message-container,
.fv-plugins-message-container--enabled {
    display: none !important;
}

@media (min-width: 1600px) {
    .q-login2-card-animated-border {
        max-width: 530px;
        border-radius: 60px;
        margin-top: 0;
    }

    .q-login2-card-animated-border::before {
        border-radius: 60px;
    }

    .q-login2-card {
        border-radius: 58px;
        padding: 2.5rem 2.5rem 2rem 2.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .lang-pills-container {
        margin-bottom: 1.5rem;
        gap: 1.5rem;
    }

    .lang-pill {
        padding: 0.42rem 0.5rem;
        font-size: 0.8rem;
    }

    .field-pill {
        padding: 0.4rem 0.5rem;
        margin-bottom: 1.1rem;
    }

    .field-icon-badge {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
        margin-right: 0.6rem;
    }

    [dir=rtl] .field-icon-badge {
        margin-right: 0;
        margin-left: 0.6rem;
    }

    .field-input,
    .field-input.form-control {
        font-size: 0.92rem;
    }

    .btn-signin {
        padding: 0.7rem;
        font-size: 1.05rem;
        margin-top: 0.3rem;
    }
}

/* ── Media Query 2: Laptop & Notebook Screens (1024.02px to 1599.98px) ── */
@media (min-width: 1024.02px) and (max-width: 1599.98px) {
    .q-login2-page {
        padding: 0.5rem 1rem;
        height: 100vh;
        overflow: hidden;
        justify-content: center;
    }

    .q-login-header {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        gap: 1.4rem;
    }

    .q-title-en,
    .q-title-ku {
        font-size: 1.35rem;
    }

    .q-sub-en,
    .q-sub-ku {
        font-size: 0.75rem;
    }

    .q-icon-webm {
        height: 90px !important;
        flex-shrink: 0;
    }

    .q-login-main-row {
        transform: translateY(-4px);
    }

    .q-side-krg {
        padding-right: 0.6rem;
    }

    .q-side-moe {
        padding-left: 0.6rem;
    }

    .q-side-group {
        gap: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .q-side-logo-img.q-krg-img,
    .q-side-logo-img.q-moe-img {
        height: 105px;
        margin-bottom: 0.6rem;
    }

    .q-side-flag-bar,
    .q-moe-divider-line {
        height: 150px;
    }

    .q-side-logo-text {
        font-size: 1.05rem;
    }

    .q-login2-card-animated-border {
        max-width: 420px;
        border-radius: 56px;
    }

    .q-login2-card-animated-border::before {
        border-radius: 56px;
    }

    .q-login2-card {
        border-radius: 54px;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    .login-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .lang-pills-container {
        margin-bottom: 0.7rem;
        gap: 0.5rem;
    }

    .lang-pill {
        font-size: 0.72rem;
        padding: 0.3rem 0.3rem;
    }

    .field-pill {
        padding: 0.32rem 0.45rem;
        margin-bottom: 0.65rem;
    }

    .field-icon-badge {
        width: 28px;
        height: 28px;
        font-size: 0.88rem;
    }

    .field-input,
    .field-input.form-control {
        font-size: 0.84rem;
        padding: 0.2rem 0.4rem;
    }

    .btn-signin {
        padding: 0.58rem;
        font-size: 0.98rem;
        margin-top: 0.25rem;
    }
}

/* ── Media Query 3: Tablet Devices (768px to 1024px) ─────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
    .q-login2-page {
        padding: 0.4rem 0.5rem;
        height: 100vh;
        overflow: hidden;
        justify-content: center;
    }

    .q-login-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem !important;
        margin-bottom: 0.4rem !important;
        width: 100% !important;
    }

    .q-header-en,
    .q-header-ku {
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .q-title-en,
    .q-title-ku {
        font-size: 0.92rem !important;
        white-space: nowrap;
    }

    .q-sub-en,
    .q-sub-ku {
        font-size: 0.55rem !important;
        white-space: nowrap;
        letter-spacing: 0.4px;
    }

    .q-icon-webm {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0;
    }

    .q-login-main-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "card card"
            "krg moe" !important;
        justify-items: center !important;
        align-items: center !important;
        transform: none !important;
        gap: 0.45rem !important;
        width: 100% !important;
    }

    .q-side-col {
        width: auto !important;
        min-width: 0 !important;
    }

    .q-login2-card-animated-border {
        grid-area: card !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        border-radius: 28px !important;
    }

    .q-login2-card-animated-border::before {
        border-radius: 28px !important;
    }

    .q-login2-card {
        border-radius: 26px !important;
        padding: 1.1rem 1.1rem 0.9rem 1.1rem !important;
    }

    .q-side-krg {
        grid-area: krg !important;
        padding: 0 !important;
        justify-self: center !important;
        align-items: center !important;
    }

    .q-side-moe {
        grid-area: moe !important;
        padding: 0 !important;
        justify-self: center !important;
        align-items: center !important;
    }

    .q-side-group {
        gap: 0.3rem !important;
        padding: 0.15rem 0.25rem !important;
    }

    .q-side-logo-img.q-krg-img,
    .q-side-logo-img.q-moe-img {
        height: 42px !important;
        margin-bottom: 0.15rem !important;
    }

    .q-side-flag-bar,
    .q-moe-divider-line {
        display: none !important;
    }

    .q-side-logo-text {
        font-size: 0.65rem !important;
    }

    .login-title {
        font-size: 1.05rem !important;
        margin-bottom: 0.55rem !important;
    }

    .lang-pills-container {
        margin-bottom: 0.6rem !important;
        gap: 0.25rem !important;
    }

    .lang-pill {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.15rem !important;
    }

    .field-pill {
        padding: 0.28rem 0.4rem !important;
        margin-bottom: 0.55rem !important;
    }

    .field-icon-badge {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.8rem !important;
        margin-right: 0.3rem;
    }

    [dir=rtl] .field-icon-badge {
        margin-right: 0;
        margin-left: 0.3rem;
    }

    .field-input,
    .field-input.form-control {
        font-size: 0.78rem !important;
        padding: 0.18rem 0.35rem !important;
    }

    .modern-2fa-pill {
        padding: 0.2rem 0.3rem !important;
        margin-bottom: 0.55rem !important;
    }

    .btn-signin {
        font-size: 0.88rem !important;
        padding: 0.5rem !important;
    }

    .q-sun-wrapper {
        display: block !important;
        position: fixed !important;
        bottom: -20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 180px !important;
        height: 90px !important;
        z-index: 50 !important;
        pointer-events: none !important;
    }

    .q-sun-img {
        width: 180px !important;
        height: 180px !important;
        opacity: 0.9 !important;
    }
}

/* ── Media Query 4: Mobile Devices (Width <= 767px) ─────────────── */
@media (max-width: 767px) {
    .q-login2-page {
        padding: 0.25rem 0.3rem;
        height: 100vh;
        overflow: hidden;
        justify-content: center;
    }

    .q-login-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        margin-bottom: 0.3rem !important;
        width: 100% !important;
    }

    .q-header-en,
    .q-header-ku {
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .q-title-en,
    .q-title-ku {
        font-size: 1.5rem !important;
        white-space: nowrap;
    }

    .q-sub-en,
    .q-sub-ku {
        font-size: 0.5rem !important;
        white-space: nowrap;
        letter-spacing: 0.3px;
    }

    .q-icon-webm {
        width: 40px !important;
        height: 70px !important;
        flex-shrink: 0;
    }

    .q-login-main-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "card card"
            "krg moe" !important;
        justify-items: center !important;
        align-items: center !important;
        transform: none !important;
        gap: 3.35rem !important;
        width: 100% !important;
    }

    .q-side-col {
        width: auto !important;
        min-width: 0 !important;
    }

    .q-login2-card-animated-border {
        grid-area: card !important;
        width: 100% !important;
        max-width: 310px !important;
        margin: 0 auto !important;
        border-radius: 24px !important;
    }

    .q-login2-card-animated-border::before {
        border-radius: 24px !important;
    }

    .q-login2-card {
        border-radius: 22px !important;
        padding: 0.9rem 0.9rem 0.75rem 0.9rem !important;
    }

    .q-side-krg {
        grid-area: krg !important;
        padding: 0 !important;
        justify-self: center !important;
        align-items: center !important;
    }

    .q-side-moe {
        grid-area: moe !important;
        padding: 0 !important;
        justify-self: center !important;
        align-items: center !important;
    }

    .q-side-group {
        gap: 0.25rem !important;
        padding: 0.1rem 0.2rem !important;
    }

    .q-side-logo-img.q-krg-img,
    .q-side-logo-img.q-moe-img {
        height: 70px !important;
        margin-bottom: 0.7rem !important;
    }

    .q-side-flag-bar,
    .q-moe-divider-line {
        display: none !important;
    }

    .q-side-logo-text {
        font-size: 0.55rem !important;
    }

    .login-title {
        font-size: 0.98rem !important;
        margin-bottom: 0.45rem !important;
    }

    .lang-pills-container {
        margin-bottom: 0.5rem !important;
        gap: 0.2rem !important;
    }

    .lang-pill {
        font-size: 0.6rem !important;
        padding: 0.18rem 0.12rem !important;
    }

    .field-pill {
        padding: 0.22rem 0.35rem !important;
        margin-bottom: 0.5rem !important;
    }

    .field-icon-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        margin-right: 0.25rem;
    }

    [dir=rtl] .field-icon-badge {
        margin-right: 0;
        margin-left: 0.25rem;
    }

    .field-input,
    .field-input.form-control {
        font-size: 0.74rem !important;
        padding: 0.15rem 0.3rem !important;
    }

    .modern-2fa-pill {
        padding: 0.18rem 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .btn-signin {
        font-size: 0.82rem !important;
        padding: 0.45rem !important;
    }

    .q-sun-wrapper {
        display: block !important;
        position: fixed !important;
        bottom: -20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 160px !important;
        height: 80px !important;
        z-index: 50 !important;
        pointer-events: none !important;
    }

    .q-sun-img {
        width: 160px !important;
        height: 160px !important;
        opacity: 0.9 !important;
    }
}