:root {
    --epos-blue: #111d9c;
    --epos-blue-dark: #08105e;
    --epos-yellow: #f4bd16;
    --epos-ink: #0c1746;
    --epos-muted: #68728f;
    --epos-line: #d8deeb;
    --epos-surface: rgba(255, 255, 255, 0.96);
    --epos-header: rgba(255, 255, 255, 0.96);
    --epos-footer: rgba(255, 255, 255, 0.97);
    --epos-shadow: 0 22px 55px rgba(12, 35, 102, 0.18);
}

html[data-epos-theme="dark"] {
    --epos-ink: #f5f7ff;
    --epos-muted: #bcc4dd;
    --epos-line: #3b4568;
    --epos-surface: rgba(12, 20, 55, 0.96);
    --epos-header: rgba(9, 16, 48, 0.96);
    --epos-footer: rgba(9, 16, 48, 0.97);
    --epos-shadow: 0 24px 65px rgba(0, 0, 0, 0.35);
}

html,
body.epos-auth-body,
body.epos-auth-body #wrapwrap,
body.epos-auth-body #wrapwrap > main {
    min-height: 100%;
}

html:has(body.epos-auth-body) {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body.epos-auth-body,
body.epos-auth-body #wrapwrap,
body.epos-auth-body #wrapwrap > main {
    width: 100%;
}

body.epos-auth-body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #eaf4ff;
    color: var(--epos-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.epos-auth-body #wrapwrap > main {
    display: block;
    min-height: 100dvh;
    min-height: 100svh;
}

.epos-auth-page {
    min-height: 100dvh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow-x: hidden;
    background: #eaf4ff;
    color: var(--epos-ink);
}

.epos-auth-header {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(235px, 0.8fr) auto;
    align-items: center;
    gap: 24px;
    margin: 14px;
    padding: 18px 28px;
    border: 1px solid rgba(17, 29, 156, 0.08);
    border-radius: 24px;
    background: var(--epos-header);
    box-shadow: 0 14px 30px rgba(29, 67, 130, 0.16);
    backdrop-filter: blur(14px);
}

.epos-auth-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.epos-auth-brand-logo,
.epos-auth-header .pos-img-header {
    width: auto;
    max-width: min(220px, 28vw);
    max-height: 38px;
    height: auto;
    object-fit: contain;
}

html[data-epos-theme="dark"] .epos-auth-brand-logo,
html[data-epos-theme="dark"] .epos-auth-header .pos-img-header {
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
}

.epos-auth-brand img {
    width: 72px;
    height: 68px;
    object-fit: contain;
}

.epos-auth-wordmark {
    color: #20294b;
    font-size: clamp(22px, 1.75vw, 34px);
    font-weight: 800;
    letter-spacing: -1.4px;
    white-space: nowrap;
}

html[data-epos-theme="dark"] .epos-auth-wordmark {
    color: #f5f7ff;
}

html[data-epos-theme="dark"] .epos-auth-wordmark-invois {
    color: #93a7ff;
}

.epos-auth-wordmark-my {
    color: var(--epos-yellow);
}

.epos-auth-wordmark-invois {
    color: var(--epos-blue);
}

.epos-auth-wordmark-epos {
    margin-left: 8px;
}

.epos-auth-resource-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    white-space: normal;
}

.epos-auth-resource-toggle {
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    border: 1px solid var(--epos-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--epos-blue);
    font-size: 19px;
    box-shadow: 0 7px 18px rgba(17, 29, 156, 0.08);
}

.epos-auth-resource-toggle:hover,
.epos-auth-resource-toggle:focus {
    color: var(--epos-blue);
    border-color: rgba(17, 29, 156, 0.35);
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 29, 156, 0.1);
}

html[data-epos-theme="dark"] .epos-auth-resource-toggle {
    background: rgba(255, 255, 255, 0.06);
    color: #dce1ff;
}

.epos-auth-resource {
    position: relative;
    min-height: 94px;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--epos-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--epos-ink);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.epos-auth-resource.is-icon-only {
    width: 42px;
    height: 42px;
    min-height: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    grid-template-columns: none;
}

.epos-auth-resource.is-icon-only .epos-auth-resource-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: transparent;
    font-size: 18px;
}

html[data-epos-theme="dark"] .epos-auth-resource {
    background: rgba(255, 255, 255, 0.04);
}

.epos-auth-resource:hover,
.epos-auth-resource:focus,
.epos-auth-resource:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(17, 29, 156, 0.35);
    box-shadow: 0 10px 24px rgba(17, 29, 156, 0.1);
    color: var(--epos-ink);
    text-decoration: none;
    outline: none;
}

.epos-auth-resource:hover *,
.epos-auth-resource:focus *,
.epos-auth-resource:focus-visible * {
    text-decoration: none;
}

.epos-auth-resource-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f4ff;
    color: var(--epos-blue);
    font-size: 21px;
}

.epos-auth-resource-copy {
    min-width: 0;
}

.epos-auth-resource-copy strong,
.epos-auth-resource-copy small {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.epos-auth-resource-copy strong {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.2;
}

.epos-auth-resource-copy small {
    color: var(--epos-muted);
    font-size: 11px;
    line-height: 1.35;
}

.epos-auth-resource-arrow {
    color: var(--epos-blue);
}

html[data-epos-theme="dark"] .epos-auth-resource-arrow {
    color: #aeb9ff;
}

.epos-auth-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    white-space: nowrap;
}

.epos-auth-language {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--epos-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
}

.epos-auth-language a {
    min-width: 45px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--epos-ink);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.epos-auth-language a.is-active {
    background: var(--epos-blue);
    color: #fff;
    box-shadow: 0 5px 12px rgba(17, 29, 156, 0.22);
}

.epos-auth-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    background-image: var(--epos-auth-bg-image, url('/apping_login_reset_page/static/img/epos_auth_hero.png'));
    background-position: var(--epos-auth-bg-position, center center);
    background-size: var(--epos-auth-bg-size, cover);
    background-repeat: no-repeat;
}

.epos-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    display: none;
    background: transparent;
}

html[data-epos-theme="dark"] .epos-auth-hero::before {
    background: transparent;
}

.epos-auth-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1500px, 100%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 64px);
    padding: 46px clamp(32px, 6vw, 96px);
}

.epos-auth-intro {
    max-width: 720px;
    text-shadow: 0 1px 16px rgba(255, 255, 255, 0.9);
}

.epos-auth-frontpage-logo {
    display: block;
    width: clamp(340px, 42vw, 580px);
    max-width: 100%;
    height: auto;
    margin: 0;
}

html[data-epos-theme="dark"] .epos-auth-intro {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52);
}

.epos-auth-kicker {
    margin: 0 0 12px;
    color: var(--epos-blue);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.35;
}

html[data-epos-theme="dark"] .epos-auth-kicker {
    color: #b9c3ff;
}

.epos-auth-intro h1 {
    margin: 0;
    color: var(--epos-blue);
    font-size: clamp(54px, 6vw, 88px);
    font-weight: 800;
    letter-spacing: -3.5px;
    line-height: 0.98;
}

html[data-epos-theme="dark"] .epos-auth-intro h1 {
    color: #f2f4ff;
}

.epos-auth-title-rule {
    width: 50px;
    height: 3px;
    display: block;
    margin: 27px 0;
    background: var(--epos-yellow);
}

.epos-auth-intro h2 {
    margin: 0 0 18px;
    font-size: clamp(21px, 2vw, 29px);
    font-weight: 750;
}

.epos-auth-intro-copy {
    margin: 0;
    color: #1a2852;
    font-size: 17px;
    line-height: 1.65;
}

html[data-epos-theme="dark"] .epos-auth-intro-copy {
    color: #e1e6f8;
}

.epos-auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 32px;
}

.epos-auth-benefit {
    width: min(245px, 100%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border: 1px solid rgba(17, 29, 156, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 9px 25px rgba(22, 56, 116, 0.08);
    text-shadow: none;
}

html[data-epos-theme="dark"] .epos-auth-benefit {
    background: rgba(10, 20, 58, 0.86);
}

.epos-auth-benefit > i {
    color: var(--epos-blue);
    font-size: 34px;
}

html[data-epos-theme="dark"] .epos-auth-benefit > i {
    color: #aeb9ff;
}

.epos-auth-benefit strong,
.epos-auth-benefit small {
    display: block;
}

.epos-auth-benefit strong {
    color: var(--epos-blue);
    font-size: 13px;
}

html[data-epos-theme="dark"] .epos-auth-benefit strong {
    color: #dce1ff;
}

.epos-auth-benefit small {
    margin-top: 3px;
    color: var(--epos-muted);
    font-size: 11px;
    line-height: 1.35;
}

.epos-auth-card {
    width: 100%;
    max-width: 440px;
    justify-self: center;
    align-self: center;
    padding: clamp(26px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: var(--epos-surface);
    box-shadow: var(--epos-shadow);
    backdrop-filter: blur(16px);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

.epos-auth-card :is(h1, h2, h3, h4, h5, h6, p, label, span, a, button, input, textarea, select),
.epos-auth-card .form-control,
.epos-auth-card .form-control::placeholder,
.epos-auth-card .btn,
.epos-auth-card .o_input,
.epos-auth-card .input-group-text {
    font-family: inherit;
    font-weight: 400 !important;
    font-synthesis: none;
}

.epos-auth-card .epos-auth-submit,
.epos-auth-card .epos-auth-submit span {
    font-weight: 500 !important;
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.5vh, 26px);
    text-align: center;
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card {
    justify-self: center;
    align-self: center;
    max-width: 420px;
    margin: 0 auto;
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-intro {
    width: min(100%, 560px);
    max-width: min(92vw, 560px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-intro.is-logo-hidden {
    max-width: min(92vw, 420px);
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-kicker {
    margin: 0 0 8px;
    color: var(--epos-blue);
    font-size: clamp(11px, 0.95vw, 15px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.3;
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-frontpage-logo {
    width: clamp(250px, 30vw, 420px);
    max-width: 90vw;
    margin: 0 auto;
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card :is(.oe_login_form, .oe_reset_password_form) {
    width: 100%;
    max-width: none;
    margin: 0;
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card :is(.oe_login_form, .oe_reset_password_form) > img,
.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card :is(.oe_login_form, .oe_reset_password_form) .pos-img-header,
.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card :is(.oe_login_form, .oe_reset_password_form) .epos-auth-brand-logo,
.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card :is(.oe_login_form, .oe_reset_password_form) .epos-auth-frontpage-logo {
    display: none;
}

.epos-auth-card-header {
    margin-bottom: 18px;
    text-align: left;
}

.epos-auth-card-header img {
    display: none;
}

html[data-epos-theme="dark"] .epos-auth-card-header img {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
}

.epos-auth-card-header h2 {
    margin: 0 0 7px;
    color: var(--epos-ink);
    font-size: 21px;
    font-weight: 400;
}

.epos-auth-card-header p {
    margin: 0 auto;
    max-width: 390px;
    color: var(--epos-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
}

.epos-auth-form-header {
    text-align: left;
}

.epos-auth-form-header h2 {
    font-size: 20px;
    line-height: 1.16;
    font-weight: 400;
}

.epos-auth-form-header p {
    max-width: none;
    font-weight: 400;
}

.epos-auth-field {
    margin-bottom: 17px;
}

.epos-auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--epos-ink);
    font-size: 13px;
    font-weight: 600 !important;
    text-align: left;
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-field > label {
    font-weight: 600 !important;
}

.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-field > label,
.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-form-header,
.epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card-header {
    text-align: left;
}

.epos-auth-control {
    position: relative;
    text-align: left;
}

/* Left field icons (envelope / key): pin like the eye toggle so they
   stay glued to the control on resize (no top:50% + translate drift). */
.epos-auth-control > i.fa-envelope-o,
.epos-auth-control > i.fa-key {
    position: absolute;
    z-index: 4;
    top: 1px;
    left: 1px;
    bottom: 1px;
    width: 48px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none;
    line-height: 1;
    font-size: 16px;
    color: #8792ad;
    pointer-events: none;
}

.epos-auth-control > i.fa-envelope-o::before,
.epos-auth-control > i.fa-key::before {
    line-height: 1;
}

.epos-auth-card .form-control {
    min-height: 50px;
    border: 1px solid var(--epos-line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.82);
    color: #18213d;
    font-size: 14px;
    font-weight: 400 !important;
    font-synthesis: none;
    box-shadow: none;
}

html[data-epos-theme="dark"] .epos-auth-card .form-control {
    background: rgba(255, 255, 255, 0.07);
    color: #f7f8ff;
}

.epos-auth-card .form-control::placeholder {
    color: #939cb2;
    font-weight: 400 !important;
    opacity: 1;
}

.epos-auth-card .form-control:focus {
    border-color: #5d69d4;
    box-shadow: 0 0 0 3px rgba(17, 29, 156, 0.11);
}

.epos-auth-control > .form-control,
.epos-auth-control > .input-group .form-control {
    padding-left: 48px;
}

.epos-auth-control > .main_login_for_all_users_pass {
    padding-right: 54px;
}

.epos-auth-card .input-group > .form-control {
    border-radius: 9px 0 0 9px;
}

.epos-auth-card .input-group .btn.btn-secondary,
.epos-auth-card .input-group .btn.btn-outline-secondary {
    min-width: 48px;
    border: 1px solid var(--epos-line);
    border-left: 0;
    border-radius: 0 9px 9px 0;
    background: rgba(255, 255, 255, 0.82);
    color: #707b98;
}

html[data-epos-theme="dark"] .epos-auth-card .input-group .btn.btn-secondary,
html[data-epos-theme="dark"] .epos-auth-card .input-group .btn.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.07);
}

.epos-auth-page[data-page="reset"] .epos-auth-card {
    margin-inline: auto;
}

.epos-reset-form[data-reset-mode="token"] {
    width: 100%;
}

.epos-password-control {
    position: relative;
}

/* Reset password fields: no left icon, only eye toggle on the right. */
.epos-password-control > .form-control:first-child {
    padding-left: 14px;
    padding-right: 54px;
}

/* Login password: left key icon + right eye toggle. */
.epos-auth-control.epos-password-control > .form-control {
    padding-left: 48px;
    padding-right: 54px;
}

/* Hide browser-native password reveal (Edge ::-ms-reveal, etc.) so only
 * .epos-password-toggle shows — avoids the double-eye on login. */
.epos-auth-card input[type="password"]::-ms-reveal,
.epos-auth-card input[type="password"]::-ms-clear,
.epos-auth-card input::-webkit-credentials-auto-fill-button,
.epos-auth-card input::-webkit-strong-password-auto-fill-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
}

.epos-password-toggle {
    position: absolute;
    z-index: 6;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 0;
    border-left-width: 0;
    border-left-style: none;
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.82);
    color: #707b98;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
}

.epos-password-toggle > i {
    pointer-events: none;
}

.epos-auth-control > .epos-password-toggle,
.epos-password-control > .epos-password-toggle {
    border: 0;
    border-left: 0;
    background: transparent;
    box-shadow: none;
}

.epos-auth-card,
.epos-reset-form,
.epos-login-form {
    text-align: left;
}

.epos-password-toggle:hover,
.epos-password-toggle:focus {
    color: var(--epos-blue);
    outline: none;
    box-shadow: inset 0 0 0 999px rgba(17, 29, 156, 0.04);
}

html[data-epos-theme="dark"] .epos-password-toggle {
    background: rgba(255, 255, 255, 0.07);
    color: #dce1ff;
}

.epos-auth-card .alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
}

.epos-auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 7px;
}

.epos-auth-submit {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #0e198c, #1725b6);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 11px 24px rgba(17, 29, 156, 0.23);
}

.epos-auth-submit:hover,
.epos-auth-submit:focus {
    background: linear-gradient(90deg, #0a147c, #101d9f);
    color: #fff;
}

.epos-auth-links {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-size: 12px;
}

.epos-auth-links a,
.epos-auth-back {
    color: var(--epos-blue);
    font-weight: 400 !important;
    text-decoration: none;
}

.epos-auth-links a:hover,
.epos-auth-links a:focus,
.epos-auth-back:hover,
.epos-auth-back:focus {
    text-decoration: none;
}

html[data-epos-theme="dark"] .epos-auth-links a,
html[data-epos-theme="dark"] .epos-auth-back {
    color: #bfc8ff;
}

.epos-auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 28px;
    padding: 17px 20px 0;
    border-top: 1px solid var(--epos-line);
}

.epos-auth-security-note > i {
    margin-top: 2px;
    color: var(--epos-blue);
    font-size: 22px;
}

html[data-epos-theme="dark"] .epos-auth-security-note > i {
    color: #aeb9ff;
}

.epos-auth-security-note p {
    margin: 0;
}

.epos-auth-security-note strong,
.epos-auth-security-note span {
    display: block;
}

.epos-auth-security-note strong {
    color: var(--epos-blue);
    font-size: 12px;
}

html[data-epos-theme="dark"] .epos-auth-security-note strong {
    color: #dce1ff;
}

.epos-auth-security-note span {
    margin-top: 2px;
    color: var(--epos-muted);
    font-size: 11px;
}

.epos-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.epos-reset-message {
    text-align: center;
}

.epos-auth-footer {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 46px;
    background: var(--epos-footer);
    color: var(--epos-muted);
    border-top: 1px solid rgba(17, 29, 156, 0.08);
}

.epos-auth-footer-logo {
    width: 48px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.epos-auth-footer-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.epos-auth-footer-links > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    border-right: 1px solid var(--epos-line);
    color: var(--epos-blue);
    font-size: 12px;
    font-weight: 600;
}

.epos-auth-footer-links > span:first-child {
    padding-left: 0;
}

.epos-auth-footer-links > span:last-child {
    border-right: 0;
}

html[data-epos-theme="dark"] .epos-auth-footer-links > span {
    color: #bdc7ff;
}

.epos-auth-footer p {
    margin: 0;
    font-size: 12px;
    text-align: center;
}

.epos-auth-footer > img {
    width: 58px;
    height: 54px;
    object-fit: contain;
}

@media (min-width: 821px) {
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) {
        height: auto;
        min-height: 100dvh;
        min-height: 100svh;
        grid-template-rows: auto minmax(0, 1fr) auto;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-header {
        grid-template-columns: minmax(210px, 0.72fr) auto;
        gap: 14px;
        margin: 8px 10px;
        padding: 8px 18px;
        border-radius: 18px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-brand-logo,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-header .pos-img-header {
        max-width: min(180px, 34vw);
        max-height: 32px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource-list {
        gap: 10px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource {
        min-height: 64px;
        grid-template-columns: 34px 1fr 12px;
        gap: 9px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource-copy strong {
        margin-bottom: 2px;
        font-size: 12px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource-copy small {
        font-size: 9px;
        line-height: 1.25;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-tools {
        gap: 9px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-language a {
        min-width: 38px;
        padding: 6px 8px;
        font-size: 13px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-hero-inner {
        min-height: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(14px, 2.8vh, 22px);
        padding: 16px clamp(24px, 5vw, 72px);
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-intro {
        max-width: min(92vw, 520px);
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-kicker {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-intro h1 {
        font-size: clamp(42px, 4.4vw, 64px);
        letter-spacing: -2.5px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-frontpage-logo {
        width: clamp(240px, 32vw, 390px);
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-title-rule {
        width: 38px;
        margin: 14px 0;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-intro h2 {
        margin-bottom: 12px;
        font-size: clamp(18px, 1.6vw, 23px);
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-intro-copy {
        max-width: 590px;
        font-size: 14px;
        line-height: 1.45;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-benefits {
        gap: 12px;
        margin-top: 18px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-benefit {
        width: min(220px, 100%);
        gap: 10px;
        padding: 10px 12px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-benefit > i {
        font-size: 26px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-benefit strong {
        font-size: 12px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-benefit small {
        font-size: 10px;
        line-height: 1.25;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card {
        max-width: 400px;
        width: 100%;
        justify-self: center;
        align-self: center;
        margin: 0 auto;
        padding: 22px 24px;
        border-radius: 22px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card-header {
        margin-bottom: 16px;
        text-align: left;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card-header img {
        display: none;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card-header h2 {
        margin-bottom: 4px;
        font-size: 19px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card-header p {
        font-size: 12px;
        line-height: 1.35;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-field {
        margin-bottom: 10px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-field label {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card .form-control,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-submit {
        min-height: 44px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-actions {
        gap: 7px;
        margin-top: 4px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-security-note {
        gap: 10px;
        margin-top: 14px;
        padding: 11px 12px 0;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-security-note > i {
        font-size: 18px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-footer {
        min-height: 46px;
        grid-template-columns: 1fr auto 44px;
        gap: 16px;
        padding: 7px 28px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-footer-links > span {
        gap: 7px;
        padding: 0 16px;
        font-size: 11px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-footer p {
        font-size: 10px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-footer > img {
        width: 38px;
        height: 34px;
    }
}

@media (min-width: 821px) and (max-height: 720px) {
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-header {
        margin: 6px 8px;
        padding: 6px 14px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-hero-inner {
        padding-block: 12px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-frontpage-logo {
        width: clamp(250px, 32vw, 420px);
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card {
        padding: 18px 22px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card .form-control,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-submit {
        min-height: 42px;
    }
}

@media (min-width: 821px) and (max-height: 760px) {
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource {
        min-height: 52px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource-copy small {
        display: none;
    }
}

@media (max-width: 1320px) {
    .epos-auth-header {
        grid-template-columns: minmax(220px, 0.8fr) auto;
        gap: 16px;
        padding-inline: 20px;
    }

    .epos-auth-resource {
        grid-template-columns: 38px 1fr 12px;
        padding: 12px;
    }

    .epos-auth-resource-copy small {
        display: none;
    }
}

@media (max-width: 1060px) {
    .epos-auth-header,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .epos-auth-resource-toggle {
        display: inline-grid;
        justify-self: end;
    }

    .epos-auth-tools {
        justify-self: end;
    }

    .epos-auth-resource-list {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(380px, calc(100vw - 28px));
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
        border: 1px solid rgba(17, 29, 156, 0.1);
        border-radius: 16px;
        background: var(--epos-header);
        box-shadow: 0 18px 42px rgba(12, 35, 102, 0.2);
        backdrop-filter: blur(14px);
    }

    .epos-auth-resource-list.is-open {
        display: grid;
    }

    .epos-auth-resource-list .epos-auth-resource {
        min-height: 74px;
        grid-template-columns: 36px minmax(0, 1fr) 12px;
        gap: 10px;
        padding: 10px 12px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource-list .epos-auth-resource {
        min-height: 74px;
        grid-template-columns: 36px minmax(0, 1fr) 12px;
        gap: 10px;
        padding: 10px 12px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource-list .epos-auth-resource.is-icon-only {
        width: 42px;
        height: 42px;
        min-height: 42px;
        min-width: 42px;
        padding: 0;
        grid-template-columns: none;
        gap: 0;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-resource-list .epos-auth-resource.is-icon-only .epos-auth-resource-icon {
        width: 100%;
        height: 100%;
        font-size: 18px;
    }

    .epos-auth-resource-list .epos-auth-resource-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .epos-auth-resource-list .epos-auth-resource-copy small {
        display: block;
        font-size: 10px;
    }

    .epos-auth-hero-inner {
        gap: 34px;
        padding-inline: 34px;
    }

    .epos-auth-intro h1 {
        font-size: clamp(48px, 6vw, 68px);
    }

    .epos-auth-frontpage-logo {
        width: clamp(300px, 40vw, 520px);
    }

    .epos-auth-footer {
        grid-template-columns: 1fr auto;
    }

    .epos-auth-footer > img {
        display: none;
    }
}

@media (min-width: 821px) and (max-width: 900px) {
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-footer {
        grid-template-columns: 1fr auto;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-hero-inner {
        justify-content: center;
        padding-inline: 22px;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-intro {
        max-width: 560px;
        text-align: center;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-frontpage-logo {
        width: min(100%, 460px);
        margin-inline: auto;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-title-rule {
        margin-inline: auto;
    }

    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card {
        max-width: 430px;
        justify-self: center;
    }
}

@media (max-width: 820px) {
    .epos-auth-page,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) {
        height: auto;
        min-height: 100dvh;
        min-height: 100svh;
        grid-template-rows: auto 1fr auto;
        overflow: visible;
    }

    .epos-auth-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
        margin: 0;
        padding: 12px clamp(12px, 4vw, 18px);
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        gap: 10px;
    }

    .epos-auth-resource-list {
        right: clamp(12px, 4vw, 18px);
        width: min(340px, calc(100vw - 24px));
    }

    .epos-auth-brand-logo,
    .epos-auth-header .pos-img-header {
        max-width: min(170px, 52vw);
        max-height: 34px;
    }

    .epos-auth-hero::before {
        background: transparent;
    }

    html[data-epos-theme="dark"] .epos-auth-hero::before {
        background: transparent;
    }

    .epos-auth-hero {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
    }

    .epos-auth-hero-inner,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-hero-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: clamp(18px, 4vw, 28px);
        width: 100%;
        max-width: none;
        padding: clamp(18px, 5vw, 28px) clamp(14px, 4vw, 22px);
    }

    .epos-auth-intro,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-intro {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .epos-auth-kicker,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-kicker {
        margin-bottom: 10px;
        font-size: clamp(13px, 3.6vw, 16px);
        letter-spacing: 0.2px;
    }

    .epos-auth-frontpage-logo,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-frontpage-logo {
        width: min(100%, 340px);
        margin-inline: auto;
    }

    .epos-auth-title-rule,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-title-rule {
        width: 40px;
        margin: 16px auto 0;
    }

    .epos-auth-card,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card {
        width: 100%;
        max-width: min(100%, 440px);
        margin-inline: auto;
        justify-self: stretch;
    }

    .epos-auth-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 14px clamp(12px, 4vw, 18px);
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .epos-auth-footer p {
        font-size: clamp(9px, 2.8vw, 11px);
        line-height: 1.45;
        max-width: 100%;
    }

    .epos-auth-footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .epos-auth-header {
        margin: 0;
        padding: 10px 12px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
        border-radius: 0;
        gap: 8px;
    }

    .epos-auth-brand {
        gap: 8px;
        min-width: 0;
    }

    .epos-auth-brand img {
        width: 48px;
        height: 46px;
    }

    .epos-auth-brand-logo,
    .epos-auth-header .pos-img-header {
        max-width: min(150px, 58vw);
        max-height: 30px;
    }

    .epos-auth-wordmark {
        font-size: 18px;
        letter-spacing: -0.7px;
    }

    .epos-auth-wordmark-epos {
        margin-left: 4px;
    }

    .epos-auth-tools {
        gap: 5px;
        flex-shrink: 0;
    }

    .epos-auth-language a {
        min-width: 36px;
        padding: 7px 6px;
        font-size: 12px;
    }

    .epos-auth-hero {
        background-position: var(--epos-auth-bg-position, center center);
    }

    .epos-auth-hero-inner,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-hero-inner {
        padding: 16px 12px 20px;
        gap: 16px;
    }

    .epos-auth-kicker,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-kicker {
        font-size: clamp(12px, 3.4vw, 14px);
    }

    .epos-auth-frontpage-logo,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-frontpage-logo {
        width: min(100%, 300px);
    }

    .epos-auth-card,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .epos-auth-card-header img {
        width: 164px;
        height: 103px;
    }

    .epos-auth-card .form-control,
    .epos-auth-submit {
        min-height: 46px;
        font-size: 16px;
    }

    .epos-auth-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .epos-auth-footer-links > span {
        padding: 5px 10px;
        border-right: 0;
        font-size: 11px;
    }

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

@media (max-width: 380px) {
    .epos-auth-header {
        padding-inline: 10px;
    }

    .epos-auth-brand-logo,
    .epos-auth-header .pos-img-header {
        max-width: min(130px, 62vw);
        max-height: 28px;
    }

    .epos-auth-hero-inner,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-hero-inner {
        padding-inline: 10px;
    }

    .epos-auth-frontpage-logo,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-frontpage-logo {
        width: min(100%, 260px);
    }

    .epos-auth-card,
    .epos-auth-page:is([data-page="login"], [data-page="reset"]) .epos-auth-card {
        padding: 18px 14px;
    }

    .epos-auth-card-header h2 {
        font-size: 18px;
    }

    .epos-auth-language a {
        min-width: 32px;
        padding: 6px 5px;
    }
}
