:root {
    color-scheme: light;
    --login-navy: #113b71;
    --login-blue: #1968e7;
    --login-cyan: #46c8f1;
    --login-muted: #7089aa;
    --login-card-width: 520px;
    --login-radius: 36px;
    --login-body-gutter: 29px;
}

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

html {
    min-height: 100%;
    background: #174b75;
    -webkit-text-size-adjust: 100%;
}

body.login-page {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    min-height: 100svh;
    direction: rtl;
    font-family: "Noto Kufi Arabic", sans-serif;
    color: var(--login-navy);
    background: #174b75;
    overflow-x: clip;
}

.login-page button,
.login-page input,
.login-page a {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.login-page button {
    touch-action: manipulation;
}

.page {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: max(26px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom));
}

.login-scene {
    position: fixed;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse at 83% 26%, #50b4cf 0, #266b98 40%, #123d66 85%);
}

.login-scene img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
}

.login-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(9 46 84 / 14%), rgb(22 66 106 / 3%) 52%, rgb(20 66 104 / 10%));
}

.login-motto {
    position: absolute;
    z-index: -1;
    top: 38px;
    display: grid;
    justify-items: center;
    gap: 8px;
    max-width: 180px;
    color: #86c6e9;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.7;
    text-align: center;
    opacity: .58;
    pointer-events: none;
}

.login-motto-left {
    left: max(34px, calc(50% - 470px));
    transform: rotate(-8deg);
}

.login-motto-right {
    right: max(34px, calc(50% - 470px));
    transform: rotate(7deg);
}

.login-motto svg {
    display: block;
    width: 104px;
    height: 22px;
    color: #5ddfb2;
}

.login-card {
    position: relative;
    width: min(100%, var(--login-card-width));
    flex: 0 1 var(--login-card-width);
    overflow: hidden;
    border: 2px solid #83d8ee;
    border-radius: var(--login-radius);
    background: #123f75;
    box-shadow: 0 22px 60px rgb(6 37 75 / 32%), 0 0 0 1px rgb(232 252 255 / 20%);
}

.login-card-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px 20px 25px;
    background: radial-gradient(ellipse at 12% 0%, #2466b1 0%, transparent 60%), linear-gradient(132deg, #1d518e, #103765 70%);
    color: #fff;
    text-align: center;
}

.login-header-waves {
    position: absolute;
    z-index: -1;
    inset-inline: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.login-cap-mark {
    position: absolute;
    z-index: -1;
    width: 38%;
    height: auto;
    top: 42px;
    right: -5px;
    color: #62b5e7;
    opacity: .16;
    pointer-events: none;
}

.top-badge {
    display: table;
    max-width: 100%;
    margin: 0 auto 17px;
    padding: 5px 21px 6px;
    border: 1.5px solid #3c81e5;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(120deg, rgb(40 105 197 / 80%), rgb(44 112 197 / 62%));
    box-shadow: inset 0 1px 0 rgb(177 219 255 / 10%);
    font-size: 19px;
    line-height: 1.8;
    font-weight: 600;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 103px;
    height: 103px;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 1.5px solid #53d0f6;
    border-radius: 22px;
    background: linear-gradient(140deg, #259afa, #2cc4ed 34%, #2770ef 76%, #2150de);
    box-shadow: inset 0 1px 0 rgb(207 252 255 / 15%), 0 5px 18px rgb(7 47 99 / 12%);
}

.logo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: -.6px;
    text-shadow: 0 2px 1px rgb(0 32 71 / 14%);
}

.header p {
    margin: 1px 0 0;
    color: #dceafa;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.9;
}

.login-card-body {
    position: relative;
    isolation: isolate;
    margin-top: -1px;
    padding: 21px var(--login-body-gutter) 0;
    border-radius: var(--login-radius) var(--login-radius) 0 0;
    background: linear-gradient(145deg, #fff 0%, #f6f9ff 55%, #edf5fe 100%);
}

#loginForm {
    position: relative;
    z-index: 1;
    margin: 0;
}

.form-group {
    margin: 0 0 23px;
}

.form-label {
    display: block;
    margin: 0 0 9px;
    color: #103565;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.8;
}

.input-wrap {
    position: relative;
}

.form-control {
    display: block;
    width: 100%;
    min-width: 0;
    height: 61px;
    padding: 0 62px 0 17px;
    border: 1.5px solid #cfdded;
    border-radius: 17px;
    outline: none;
    color: #163d6b;
    background: linear-gradient(120deg, #f1f6fc, #edf3fa);
    box-shadow: inset 0 1px 2px rgb(103 135 177 / 2%);
    font-size: 18px;
    line-height: normal;
    text-align: right;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.form-control::placeholder {
    color: #748bad;
    opacity: 1;
}

.form-control:focus {
    border-color: #399bea;
    background: #f9fcff;
    box-shadow: 0 0 0 3px rgb(45 159 233 / 14%);
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #163d6b;
    box-shadow: inset 0 0 0 100px #edf3fa;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    display: block;
    width: 25px;
    height: 25px;
    transform: translateY(-50%);
    color: #7b93b2;
    pointer-events: none;
}

.password-input {
    padding-left: 67px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    left: 13px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 40px;
    padding: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 11px;
    color: #4e6b90;
    background: #e1eaf5;
    cursor: pointer;
}

.toggle-password::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.toggle-password svg {
    display: block;
    width: 24px;
    height: 24px;
}

.toggle-password svg[hidden] {
    display: none;
}

.toggle-password:hover {
    background: #d3e3f4;
}

.options-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 1px 0 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: #4b6b94;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
}

.remember-me input[type="checkbox"],
.remember-check {
    position: relative;
    flex: 0 0 20px;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #c3d3e3;
    border-radius: 5px;
    background: #ecf4fc;
}

.remember-me input[type="checkbox"]:checked,
.remember-check {
    border-color: #3cc4a2;
    background: linear-gradient(135deg, #60d5b9, #2ca98a);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%);
}

.remember-me input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 8px;
    width: 7px;
    height: 12px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(40deg);
}

.remember-check svg {
    display: block;
    width: 100%;
    height: 100%;
    padding: 4px;
    color: #fff;
}

.remember-me input[type="checkbox"] {
    cursor: pointer;
}

.forgot-link {
    color: #1676f4;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 10px 57px;
    border: 1px solid #198df0;
    border-top-color: #37c9f1;
    border-radius: 21px;
    color: #fff;
    background: linear-gradient(145deg, #1dadf1 0%, #278cf2 30%, #1761de 100%);
    box-shadow: 0 7px 15px rgb(47 162 212 / 20%), inset 0 1px 0 rgb(117 228 255 / 85%), inset 0 -1px 0 rgb(9 75 160 / 30%);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.7;
    cursor: pointer;
    transition: filter .16s ease, box-shadow .16s ease;
}

.btn-login:hover {
    filter: brightness(1.04);
    box-shadow: 0 9px 20px rgb(36 137 206 / 27%), inset 0 1px 0 rgb(117 228 255 / 85%);
}

.btn-login:active {
    filter: brightness(.98);
}

.login-button-arrow {
    position: absolute;
    left: 18px;
    width: 41px;
    height: 41px;
    padding: 11px;
    border-radius: 50%;
    color: #1559b0;
    background: #fff;
    box-shadow: 0 2px 2px rgb(16 80 159 / 10%);
}

.login-button-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin: 22px 0 17px;
    color: #143d72;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

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

.btn-qr-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19px;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    border: 1.5px solid #46b4f2;
    border-radius: 18px;
    color: #103d74;
    background: linear-gradient(120deg, #edf6ff, #e7f2fe);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 95%);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.8;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
}

.btn-qr-login svg {
    flex: 0 0 30px;
    display: block;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-qr-login:hover,
.btn-qr-login[aria-expanded="true"] {
    border-color: #1b8ce5;
    background: #e0efff;
}

.footer {
    position: relative;
    isolation: isolate;
    margin: 0 calc(-1 * var(--login-body-gutter));
    padding: 16px var(--login-body-gutter) 26px;
    overflow: hidden;
    text-align: center;
}

.login-book-mark {
    display: block;
    width: 49%;
    max-width: 242px;
    height: 36px;
    margin: 2px auto 8px;
    color: #acc7e0;
    opacity: .53;
}

.login-footer-waves {
    position: absolute;
    z-index: -1;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: 78px;
    pointer-events: none;
}

.footer p,
.footer-note {
    position: relative;
    margin: 0;
    color: #778fb3;
    font-size: 13px;
    line-height: 1.9;
}

.text-danger {
    display: block;
    margin-top: 6px;
    color: #b53643;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
}

.text-danger:empty {
    display: none;
}

.error-box {
    margin-top: 15px;
    padding: 11px 13px;
    border: 1px solid #f2c5ca;
    border-radius: 13px;
    color: #a62938;
    background: #fff0f2;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
}

.qr-login-panel {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    margin: auto;
    padding: 23px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1.5px solid #83d8ee;
    border-radius: 24px;
    color: var(--login-navy);
    background: #f8fbff;
    box-shadow: 0 22px 65px rgb(2 29 60 / 32%);
}

.qr-login-panel[hidden],
.qr-login-panel [hidden] {
    display: none !important;
}

.qr-login-panel::backdrop {
    background: rgb(7 37 75 / 65%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.qr-login-title {
    margin: 0 0 9px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.8;
}

.qr-login-description {
    margin: 0 0 18px;
    color: #526f93;
    font-size: 13px;
    line-height: 1.95;
}

.qr-login-methods,
.qr-login-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qr-login-methods {
    margin-bottom: 14px;
}

.qr-login-methods button {
    min-height: 72px;
    padding: 13px 8px;
    border: 1px solid #bdd9f4;
    border-radius: 14px;
    color: #164981;
    background: #e9f4ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    cursor: pointer;
}

.qr-login-methods button:hover {
    background: #dceefe;
    border-color: #7cb8ee;
}

.qr-login-reader {
    min-height: 210px;
    overflow: hidden;
    border: 1px dashed #87b6dc;
    border-radius: 15px;
    background: #173956;
}

.qr-login-reader video {
    width: 100% !important;
    max-height: 55vh;
    border-radius: 13px;
    object-fit: cover;
}

.qr-login-reader img {
    max-width: 72px;
}

.qr-login-status {
    min-height: 41px;
    margin: 11px 0 0;
    padding: 9px 11px;
    border-radius: 11px;
    color: #4d698c;
    background: #eaf1f8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.qr-login-status[data-state="success"],
.qr-login-status.success {
    color: #0d754f;
    background: #e0f5e9;
}

.qr-login-status[data-state="error"],
.qr-login-status.error {
    color: #a93140;
    background: #fff0f2;
}

.qr-login-actions {
    margin-top: 11px;
}

.qr-login-actions button {
    min-height: 43px;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
    cursor: pointer;
}

.qr-login-retry,
.qr-login-actions button.primary {
    color: #fff;
    background: #1973e7;
}

.qr-login-stop {
    color: #345678;
    background: #e5edf7;
}

.qr-login-panel button:disabled,
.btn-login:disabled,
.btn-qr-login:disabled {
    opacity: .62;
    cursor: wait;
}

.login-page a:focus-visible,
.login-page button:focus-visible,
.remember-me input:focus-visible {
    outline: 3px solid #22a5e9;
    outline-offset: 4px;
}

@media (min-width: 768px) and (max-height: 850px) {
    :root {
        --login-card-width: 440px;
        --login-radius: 29px;
        --login-body-gutter: 25px;
    }

    .page {
        padding-block: 20px;
    }

    .login-card-header {
        padding: 15px 16px 19px;
    }

    .top-badge {
        margin-bottom: 12px;
        padding: 3px 17px 4px;
        font-size: 15px;
    }

    .logo-wrap {
        width: 78px;
        height: 78px;
        margin-bottom: 8px;
        border-radius: 18px;
    }

    .header h1 {
        font-size: 27px;
    }

    .header p {
        font-size: 13px;
    }

    .login-card-body {
        padding-top: 17px;
    }

    .form-group {
        margin-bottom: 17px;
    }

    .form-label {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .form-control {
        height: 53px;
        padding-right: 51px;
        border-radius: 14px;
        font-size: 16px;
    }

    .input-icon {
        right: 16px;
        width: 21px;
        height: 21px;
    }

    .toggle-password {
        left: 10px;
        width: 36px;
        height: 35px;
    }

    .options-row {
        gap: 7px;
        margin-bottom: 17px;
    }

    .remember-me,
    .forgot-link {
        font-size: 13px;
    }

    .remember-me input[type="checkbox"],
    .remember-check {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .remember-me input[type="checkbox"]:checked::after {
        top: 3px;
        left: 7px;
        width: 6px;
        height: 10px;
    }

    .btn-login {
        min-height: 58px;
        border-radius: 17px;
        font-size: 20px;
    }

    .login-button-arrow {
        left: 15px;
        width: 34px;
        height: 34px;
        padding: 9px;
    }

    .login-divider {
        margin: 16px 0 13px;
        font-size: 14px;
    }

    .btn-qr-login {
        min-height: 54px;
        gap: 15px;
        border-radius: 15px;
        font-size: 16px;
    }

    .btn-qr-login svg {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
    }

    .footer {
        padding-top: 12px;
        padding-bottom: 20px;
    }

    .login-book-mark {
        height: 28px;
        margin-bottom: 5px;
    }

    .footer p {
        font-size: 11px;
    }
}

@media (min-width: 900px) and (min-height: 1100px) {
    :root {
        --login-card-width: 672px;
        --login-radius: 48px;
        --login-body-gutter: 38px;
    }

    .page {
        padding-top: max(60px, env(safe-area-inset-top));
        padding-bottom: max(72px, env(safe-area-inset-bottom));
    }

    .login-card-header {
        padding: 29px 26px 22px;
    }

    .login-cap-mark {
        top: 54px;
    }

    .top-badge {
        margin-bottom: 22px;
        padding: 6px 27px 8px;
        font-size: 24px;
    }

    .logo-wrap {
        width: 133px;
        height: 133px;
        margin-bottom: 16px;
        border-radius: 28px;
    }

    .header h1 {
        font-size: 44px;
        line-height: 1.6;
    }

    .header p {
        font-size: 22px;
    }

    .login-card-body {
        padding-top: 27px;
    }

    .form-group {
        margin-bottom: 28px;
    }

    .form-label {
        margin-bottom: 10px;
        font-size: 24px;
    }

    .form-control {
        height: 79px;
        padding-right: 80px;
        padding-left: 22px;
        border-radius: 22px;
        font-size: 23px;
    }

    .input-icon {
        right: 23px;
        width: 32px;
        height: 32px;
    }

    .password-input {
        padding-left: 87px;
    }

    .toggle-password {
        left: 17px;
        width: 54px;
        height: 51px;
        padding: 10px;
        border-radius: 14px;
    }

    .toggle-password svg {
        width: 31px;
        height: 31px;
    }

    .options-row {
        gap: 13px;
        margin-bottom: 32px;
    }

    .remember-me {
        gap: 13px;
        font-size: 21px;
    }

    .remember-me input[type="checkbox"],
    .remember-check {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        border-radius: 6px;
    }

    .remember-check svg {
        padding: 5px;
    }

    .forgot-link {
        font-size: 21px;
    }

    .btn-login {
        min-height: 93px;
        padding-inline: 74px;
        border-radius: 27px;
        font-size: 30px;
    }

    .login-button-arrow {
        left: 23px;
        width: 53px;
        height: 53px;
        padding: 14px;
    }

    .login-divider {
        gap: 19px;
        margin: 28px 0 22px;
        font-size: 22px;
    }

    .btn-qr-login {
        min-height: 83px;
        gap: 24px;
        border-radius: 23px;
        font-size: 23px;
    }

    .btn-qr-login svg {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .footer {
        padding-top: 21px;
        padding-bottom: 30px;
    }

    .login-book-mark {
        max-width: 313px;
        height: 46px;
        margin-top: 3px;
        margin-bottom: 10px;
    }

    .footer p {
        font-size: 17px;
    }

    .login-footer-waves {
        height: 101px;
    }

    .login-motto-left {
        left: 34px;
    }

    .login-motto-right {
        right: 34px;
    }
}

@media (max-width: 575px) {
    :root {
        --login-radius: 28px;
        --login-body-gutter: 20px;
    }

    .page {
        padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
    }

    .login-card-header {
        padding: 17px 12px 20px;
    }

    .top-badge {
        margin-bottom: 13px;
        padding: 3px 17px 4px;
        font-size: 14px;
    }

    .logo-wrap {
        width: 77px;
        height: 77px;
        margin-bottom: 9px;
        border-radius: 18px;
    }

    .header h1 {
        font-size: 27px;
    }

    .header p {
        margin-top: 2px;
        font-size: 12px;
    }

    .login-cap-mark {
        top: 40px;
        width: 40%;
    }

    .login-card-body {
        padding-top: 16px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        margin-bottom: 7px;
        font-size: 15px;
    }

    .form-control {
        height: 53px;
        padding-right: 48px;
        padding-left: 13px;
        border-radius: 14px;
        font-size: 16px;
    }

    .password-input {
        padding-left: 56px;
    }

    .input-icon {
        right: 14px;
        width: 22px;
        height: 22px;
    }

    .toggle-password {
        left: 10px;
        width: 37px;
        height: 36px;
        border-radius: 9px;
    }

    .toggle-password svg {
        width: 21px;
        height: 21px;
    }

    .options-row {
        gap: 9px;
        margin-bottom: 20px;
    }

    .remember-me {
        gap: 8px;
        font-size: 12px;
    }

    .remember-me input[type="checkbox"],
    .remember-check {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .remember-me input[type="checkbox"]:checked::after {
        top: 3px;
        left: 7px;
        width: 6px;
        height: 10px;
    }

    .forgot-link {
        font-size: 13px;
    }

    .btn-login {
        min-height: 62px;
        padding-inline: 52px;
        border-radius: 17px;
        font-size: 19px;
    }

    .login-button-arrow {
        left: 15px;
        width: 35px;
        height: 35px;
        padding: 9px;
    }

    .login-divider {
        gap: 12px;
        margin: 18px 0 14px;
        font-size: 14px;
    }

    .btn-qr-login {
        min-height: 56px;
        gap: 14px;
        border-radius: 15px;
        font-size: 15px;
    }

    .btn-qr-login svg {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

    .footer {
        padding-top: 13px;
        padding-bottom: 23px;
    }

    .login-book-mark {
        width: 53%;
        height: 27px;
        margin-bottom: 6px;
    }

    .footer p {
        font-size: 10px;
    }

    .login-footer-waves {
        height: 69px;
    }

    .qr-login-panel {
        padding: 19px;
    }

    .qr-login-title {
        font-size: 17px;
    }
}

@media (max-width: 1000px) {
    .login-motto {
        display: none;
    }
}

@media (max-width: 350px) {
    :root {
        --login-body-gutter: 15px;
    }

    .page {
        padding-inline: 12px;
    }

    .header h1 {
        font-size: 25px;
    }

    .remember-me {
        font-size: 11px;
    }

    .btn-login {
        font-size: 17px;
    }

    .btn-qr-login {
        gap: 10px;
        font-size: 13px;
    }

    .qr-login-methods {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page *,
    .login-page *::before,
    .login-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (forced-colors: active) {
    .login-card,
    .form-control,
    .btn-login,
    .btn-qr-login,
    .qr-login-panel,
    .qr-login-methods button {
        border: 1px solid CanvasText;
    }

    .remember-me input[type="checkbox"] {
        appearance: auto;
    }

    .remember-me input[type="checkbox"]::after {
        display: none;
    }
}
