html[data-brand="alurapay"] .ap-entry {
    --entry-page: #f6f8f2;
    --entry-field: #fff;
    --entry-ink: #11150F;
    --entry-muted: #56624E;
    --entry-rule: #cfD8c9;
    --entry-link: #486600;
    --entry-accent: #C6F336;
    --entry-soft: #edf2e7;
    position: relative;
    margin: 0;
    min-height: 100svh;
    background: var(--entry-page) !important;
    color: var(--entry-ink) !important;
    font-family: Inter, system-ui, sans-serif;
    -webkit-text-size-adjust: 100%;
}
html[data-brand="alurapay"][data-theme="dark"] .ap-entry {
    --entry-page: #11150F;
    --entry-field: #1B2119;
    --entry-ink: #f6f8f2;
    --entry-muted: #bac4b3;
    --entry-rule: #394334;
    --entry-link: #C6F336;
    --entry-soft: #232c1e;
}
.ap-entry *, .ap-entry *::before, .ap-entry *::after { box-sizing: border-box; }
.ap-entry [hidden] { display: none !important; }
.ap-entry :is(a, button, input):focus-visible {
    outline: 2px solid var(--entry-link);
    outline-offset: 3px;
}
.ap-entry picture.ap-entry-scene {
    display: block;
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    overflow: hidden;
    background: #25251c;
    pointer-events: none;
}
.ap-entry-scene img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}
.ap-entry-scene::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgb(16 18 16 / 33%), transparent 28%);
}
.ap-entry .ap-entry-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.ap-entry-brand img { display: block; width: clamp(134px, 12vw, 184px); height: auto; }
.ap-entry .ap-entry-mode {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--entry-rule);
    border-radius: 50%;
    color: var(--entry-ink);
    background: var(--entry-field);
    box-shadow: none;
    cursor: pointer;
}
.ap-entry-mode svg { width: 20px; height: 20px; }
.ap-entry h1, .ap-entry h2 {
    margin: 0;
    font-family: Sora, Inter, system-ui, sans-serif;
    color: var(--entry-ink);
    letter-spacing: -.045em;
    line-height: 1.12;
}
.ap-entry .ap-entry-primary, .ap-entry .ap-entry-form .wp-button-green {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    width: 100%;
    padding: 12px 19px;
    border: 1px solid var(--entry-accent);
    border-radius: 13px;
    background: var(--entry-accent);
    color: #11150F;
    font: 650 16px/1.35 Inter, system-ui, sans-serif;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}
.ap-entry .ap-entry-primary:hover, .ap-entry .ap-entry-form .wp-button-green:hover { background: #D2FA60; }
.ap-entry .ap-entry-primary svg, .ap-entry-form .wp-button-green svg { width: 22px; height: 22px; }
.ap-entry :is(.wp-input,.ap-entry-input) {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--entry-rule);
    border-radius: 10px;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}
.ap-entry .wp-auth-options { gap: 14px; flex-wrap: wrap; }
.ap-entry :is(.wp-auth-options,.ap-entry-options) a, .ap-entry-mobile-foot a, .ap-entry-register a {
    color: var(--entry-link);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: .17em;
}
.ap-entry :is(.wp-remember-control,.ap-entry-remember) input { accent-color: var(--entry-link); }
.ap-entry .av-desktop-login {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}
.ap-entry-desk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(22px, 3.4vw, 54px) clamp(24px, 4.4vw, 72px) 12px;
}
.ap-entry-desk-actions { display: flex; align-items: center; gap: 18px; }
.ap-entry-desk-actions > a { display: inline-flex; align-items: center; gap: 6px; color: var(--entry-link); font-size: 14px; font-weight: 600; text-decoration: none; }
.ap-entry-desk-actions > a svg { width: 18px; height: 18px; }
.ap-entry .av-desktop-login main {
    display: grid;
    place-items: center;
    width: 50%;
    max-width: none;
    margin: 0 0 0 50%;
    padding: 28px clamp(26px, 4vw, 68px);
    flex: 1;
}
.ap-entry-form { width: 100%; max-width: 420px; }
.ap-entry-form h1 { font-size: clamp(32px, 3.15vw, 52px); }
.ap-entry-form > p:first-of-type { margin: 12px 0 30px; color: var(--entry-muted); font-size: 16px; line-height: 1.5; }
.ap-entry-form .wp-auth-form { width: 100%; }
.ap-entry-form .wp-field label { color: var(--entry-ink); }
.ap-entry-form .wp-input-wrap > svg, .ap-entry-form .wp-input-wrap > button { color: var(--entry-muted); }
.ap-entry-register { color: var(--entry-muted); margin: 23px 0 0; font-size: 14px; }
.ap-entry-desk-foot { width: 50%; margin: 0 0 0 50%; padding: 20px; text-align: center; font-size: 12px; }
.ap-entry-desk-foot a { color: var(--entry-muted); text-underline-offset: .18em; }
.ap-entry .av-mobile-login-page { display: none; }

@media (max-width: 767px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    .ap-entry .av-desktop-login { display: none; }
    .ap-entry .av-mobile-login-page, body.ap-entry.av-mobile-login-page {
        display: block;
        position: relative;
        min-height: 100svh;
        background: transparent;
        padding: 0;
        overflow: visible;
    }
    .ap-entry .av-mobile-login-page > main, body.ap-entry.av-mobile-login-page > main { width: 100%; max-width: none; margin: 0; padding: 0; }
    .ap-entry picture.ap-entry-scene { width: 100%; height: max(51svh, calc(100% - 210px)); inset: 0 0 auto; }
    .ap-entry-scene img { object-position: 58% 36%; }
    .ap-entry-mobile {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100svh;
        width: 100%;
        position: relative;
        isolation: isolate;
    }
    .ap-entry-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: max(21px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) 0 max(22px,env(safe-area-inset-left));
    }
    .ap-entry-mobile-head .ap-entry-brand img { width: clamp(148px, 39vw, 185px); }
    .ap-entry-mobile-head .ap-entry-mode { width: 40px; height: 40px; border-color: rgb(246 248 242 / 40%); background: rgb(16 18 16 / 56%); color: #f6f8f2; }
    .ap-entry-sheet {
        position: relative;
        width: 100%;
        padding: 16px max(22px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));
        margin-top: clamp(160px, 26svh, 360px);
        color: var(--entry-ink);
        background: var(--entry-page);
    }
    .ap-entry-sheet::before {
        position: absolute;
        inset: auto 0 100%;
        height: clamp(78px, 15svh, 150px);
        content: "";
        background: linear-gradient(0deg, var(--entry-page), transparent);
        pointer-events: none;
    }
    .ap-entry-sheet > *, .ap-entry-card { width: min(100%, 495px); margin-inline: auto; }
    .ap-entry-card h1 { font-size: clamp(26px, 7.5vw, 42px); }
    .ap-entry-card p { margin: 6px 0 0; color: var(--entry-muted); font-size: 14px; line-height: 1.55; }
    .ap-entry-card .ap-entry-primary { margin-top: 18px; }
    .ap-entry-identity { display: flex; gap: 12px; align-items: center; }
    .ap-entry-avatar, .ap-entry-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
    .ap-entry-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 18px; border-block: 1px solid var(--entry-rule); }
    .ap-entry-shortcuts a { min-width: 0; display: flex; flex-direction: column; gap: 7px; align-items: center; padding: 13px 2px 11px; text-align: center; color: var(--entry-ink); text-decoration: none; font-size: clamp(10px, 2.8vw, 13px); font-weight: 600; line-height: 1.22; }
    .ap-entry-shortcuts a svg { width: 21px; height: 21px; color: var(--entry-link); }
    .ap-entry-shortcuts a:hover { color: var(--entry-link); background: var(--entry-soft); }
    .ap-entry-mobile-foot { margin-top: 14px; color: var(--entry-muted); font-size: 12px; text-align: center; line-height: 1.5; }
    .ap-entry-stage { display: grid; gap: 10px; }
    .ap-entry-stage > label { color: var(--entry-ink); font-size: 13px; font-weight: 650; }
    .ap-entry-stage-heading { display: grid; gap: 6px; padding-bottom: 3px; }
    .ap-entry-stage-heading strong { color: var(--entry-ink); font: 650 clamp(24px,6vw,32px)/1.15 Sora,Inter,sans-serif; letter-spacing: -.04em; }
    .ap-entry-stage-heading small { color: var(--entry-muted); font-size: 14px; line-height: 1.45; }
    .ap-entry-mobile input.wp-input { padding: 12px 14px; }
    .ap-entry-password-wrap { position: relative; }
    .ap-entry-password-wrap .wp-input { padding-inline-end: 78px; }
    .ap-entry-password-wrap button { position: absolute; inset: 0 8px 0 auto; border: 0; padding: 0 5px; background: transparent; color: var(--entry-link); font: 650 12px Inter,sans-serif; }
    .ap-entry-stage .ap-entry-primary { margin-top: 4px; }
    .ap-entry-hint:empty { display: none; }
    .ap-entry-card .ap-entry-hint { color: var(--entry-muted); font-size: 13px; }
    .ap-entry-options, .ap-entry-remember { display: flex; align-items: center; gap: 6px; color: var(--entry-muted); font-size: 12px; }
    .ap-entry-options { flex-wrap: wrap; justify-content: space-between; row-gap: 10px; }
    .ap-entry-back { min-height: 42px; padding: 6px 10px; border: 0; border-radius: 8px; color: var(--entry-link); background: transparent; font: 650 14px Inter,sans-serif; cursor: pointer; }
    .ap-entry-sheet:has([data-login-card]:not([data-login-state="welcome"])) { margin-top: clamp(58px, 12svh, 150px); }
    .ap-entry-sheet:has([data-login-card]:not([data-login-state="welcome"])) .ap-entry-shortcuts { display: none; }
    .ap-entry-form-error:not(:empty) { margin-bottom: 12px; }
}
@media (max-height: 560px) and (max-width: 1024px) {
    .ap-entry-sheet { margin-top: 78px; }
    .ap-entry-sheet:has([data-login-card]:not([data-login-state="welcome"])) { margin-top: 32px; }
}

html[data-brand="alurapay"][data-theme] body.ap-entry :is(.wp-auth-options,.ap-entry-options) a,
html[data-brand="alurapay"][data-theme] body.ap-entry .ap-entry-form .wp-input-wrap > svg {
    color: var(--entry-link) !important;
}
html[data-brand="alurapay"][data-theme] body.ap-entry,
html[data-brand="alurapay"][data-theme] body.ap-entry :is(button,input) {
    font-family: Inter,system-ui,sans-serif !important;
}
.ap-entry .ap-entry-identity { min-width: 0; }
.ap-entry .ap-entry-identity > div { min-width: 0; overflow-wrap: anywhere; }
.ap-entry .ap-entry-avatar { display: grid; flex: none; place-items: center; color: var(--entry-link); }
.ap-entry .ap-entry-avatar > svg { width: 25px; height: 25px; }
