/* Retailer sign-in page (login.html only). Scoped under body.lp so the shared auth-pro.css used by other pages is untouched.
   >=900px wide: a fixed-ratio "stage" over login-bg.jpg that always fits the window (no scrolling); everything is sized in --u units.
   Below 900px: simple stacked layout. */

body.auth-page.lp {
    background:
        radial-gradient(900px 520px at 8% 0%, rgba(214, 238, 220, 0.85), transparent 68%),
        radial-gradient(760px 460px at 100% 100%, rgba(205, 232, 213, 0.75), transparent 70%),
        #f1f8f2;
}

/* ---------- Shared pieces ---------- */
.lp .auth-pro-shell { min-height: 0; align-content: start; grid-template-columns: 1fr; }
.lp .lp-showcase { position: relative; padding: 28px 24px 8px; }
.lp-brand { display: block; width: 150px; height: auto; margin: 0 0 20px; }
.lp-pill {
    display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
    background: rgba(27, 107, 52, 0.1); color: #1b6b34; font-size: 11px; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
}
.lp h1.lp-title {
    margin: 16px 0 12px; font-family: "Manrope", "Segoe UI", sans-serif; font-weight: 800;
    font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.04; letter-spacing: -0.035em; color: #0f2a1a;
}
.lp h1.lp-title span { color: #1f9a4a; }
.lp .lp-lead { margin: 0; font-size: 15px; line-height: 1.6; color: #3f5548; max-width: 46ch; }
.lp-feats { display: none; list-style: none; margin: 0; padding: 0; }
.lp-feats li { display: flex; align-items: center; color: #274333; font-weight: 600; }
.lp-feats .ic { flex: none; display: grid; place-items: center; border-radius: 50%; background: #e3f2e7; color: #1b6b34; }

.lp .auth-pro-panel { padding: 24px clamp(16px, 3vw, 40px) 32px; }
.lp .auth-pro-card {
    width: min(470px, 100%); padding: 30px 30px 24px; border-radius: 24px; background: #fff;
    border: 1px solid rgba(15, 42, 26, 0.06); box-shadow: 0 24px 60px rgba(15, 42, 26, 0.1); backdrop-filter: none;
}
.lp .lp-card-logo { display: none; width: 150px; height: auto; margin: 0 0 16px; }
.lp .auth-pro-card h3.auth-pro-welcome { margin: 0; font-size: 28px; font-weight: 800; color: #0f2a1a; letter-spacing: -0.03em; }
.lp .auth-pro-subtitle { margin: 6px 0 20px; color: #5b6b62; font-size: 14.5px; line-height: 1.45; }
.lp .auth-pro-form .form-group { margin-bottom: 14px; }
.lp .auth-pro-form label { font-size: 13.5px; font-weight: 800; color: #12281c; margin-bottom: 7px; }
.lp-field { position: relative; }
.lp-field > .lp-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #5b6b62; pointer-events: none; }
.lp .auth-pro-form .lp-field input:not([type="checkbox"]):not([type="hidden"]) {
    width: 100%; box-sizing: border-box; padding: 12px 14px 12px 42px; border: 1px solid #e3ebe6;
    border-radius: 11px; background: #f7faf8; font-size: 14.5px; color: #12281c; box-shadow: none;
}
.lp .auth-pro-form .lp-field input::placeholder { color: #8a9a91; opacity: 1; }
.lp .auth-pro-form .lp-field input:focus { border-color: #1b6b34; background: #fff; box-shadow: 0 0 0 3px rgba(27, 107, 52, 0.14); }
.lp .auth-pro-form .auth-pw-wrap input#id_password { padding-right: 46px; }
.lp .auth-pro-remember { margin: 2px 0 14px !important; }
.lp .auth-pro-remember-label { font-size: 14px !important; color: #3f5548 !important; }
.lp .auth-pro-form .auth-pro-remember-label input[type="checkbox"]:checked { border-color: #126037 !important; background: #126037 !important; }
.lp .peety-recaptcha { transform-origin: 0 0; max-width: 100%; }
.lp .auth-pro-btn {
    width: 100% !important; margin-top: 4px; padding: 13px 22px !important; border-radius: 11px !important;
    background: #126037 !important; box-shadow: none !important; font-size: 15px !important; font-weight: 700 !important;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.lp .auth-pro-btn::after { content: "\2192"; font-weight: 600; }
.lp .auth-pro-btn.is-loading::after, .lp .auth-pro-btn.is-throttled::after { display: none; }
.lp .auth-pro-btn:hover:not(:disabled) { background: #0e4e2c !important; transform: none; }
.lp-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 12.5px; color: #4f6458; }
.lp-secure svg { width: 16px; height: 16px; color: #1b6b34; }
.lp-help { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #e6eee9; text-align: center; font-size: 12.5px; color: #5b6b62; }
.lp-help a { color: #1b6b34; font-weight: 700; text-decoration: none; }
.lp-help a:hover { text-decoration: underline; }

@media (max-width: 680px) {
    .lp .auth-pro-card { padding: 24px 20px 20px; border-radius: 20px; }
}

/* ---------- Window fit: fills the window, never scrolls ----------
   --u: one design unit of the artwork (1/1240 of its width), limited by window width and height.
   --uc: the same unit shrunk a little for text and form, so the content stays compact.
   Text hugs the left, the card hugs the right, both vertically centred; the artwork stays centred. */
@media (min-width: 900px) {
    html:has(body.lp) { height: 100%; overflow: hidden; }
    body.auth-page.lp { height: 100vh; min-height: 0; overflow: hidden; }
    /* fill any space around the artwork with the same picture, enlarged and softened */
    body.auth-page.lp::before {
        content: ""; position: fixed; inset: -60px; z-index: 0; pointer-events: none;
        background: url("/static/login-bg.jpg?v=20261029p") center / cover no-repeat; filter: blur(26px);
    }
    .lp .auth-pro-shell {
        display: block; position: relative; z-index: 1; width: 100vw; height: 100vh; min-height: 0;
        --u: min(calc(100vw / 1240), calc(100vh / 705));
        --uc: calc(var(--u) * 0.84);
        --ucc: calc(var(--u) * 0.98);
        --sx: max(0px, calc((100vw - 1240 * var(--u)) / 2));
    }
    .lp .auth-pro-shell::before {
        content: ""; position: absolute; left: 50%; top: 50%; width: calc(1240 * var(--u)); height: calc(705 * var(--u));
        transform: translate(-50%, -50%); pointer-events: none;
        background: url("/static/login-bg.jpg?v=20261029p") center / 100% 100% no-repeat;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
        mask-composite: intersect;
    }
    .lp .lp-showcase {
        position: absolute; left: calc(var(--sx) * 0.6 + 34 * var(--uc)); top: calc(50% - 9vh); transform: translateY(-50%);
        padding: 0; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none;
    }
    .lp-brand { width: calc(250 * var(--uc)); margin: 0 0 calc(30 * var(--uc)); }
    .lp-pill { height: calc(30 * var(--uc)); padding: 0 calc(16 * var(--uc)); font-size: calc(11 * var(--uc)); margin: 0 0 calc(22 * var(--uc)); }
    .lp h1.lp-title { font-size: calc(52 * var(--uc)); line-height: calc(55 * var(--uc)); margin: 0 0 calc(18 * var(--uc)); max-width: none; white-space: nowrap; }
    .lp h1.lp-title span { display: block; }
    .lp .lp-lead { width: calc(440 * var(--uc)); font-size: calc(16.5 * var(--uc)); line-height: calc(25 * var(--uc)); max-width: none; margin: 0 0 calc(28 * var(--uc)); }
    .lp-feats { display: grid; grid-template-columns: calc(190 * var(--uc)) calc(190 * var(--uc)); gap: calc(26 * var(--uc)) calc(10 * var(--uc)); }
    .lp-feats li { gap: calc(12 * var(--uc)); font-size: calc(15 * var(--uc)); line-height: 1.3; }
    .lp-feats .ic { width: calc(42 * var(--uc)); height: calc(42 * var(--uc)); }
    .lp-feats svg { width: calc(21 * var(--uc)); height: calc(21 * var(--uc)); }

    .lp .auth-pro-panel { position: absolute; right: calc(var(--sx) * 0.6 + 40 * var(--ucc)); top: calc(50% - 3.5vh); transform: translateY(-50%); width: calc(450 * var(--ucc)); padding: 0; display: block; }
    .lp .auth-pro-card { width: 100%; padding: calc(24 * var(--ucc)) calc(28 * var(--ucc)) calc(20 * var(--ucc)); border-radius: calc(16 * var(--ucc)); max-height: calc(100vh - 56px); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; box-shadow: 0 calc(16 * var(--ucc)) calc(40 * var(--ucc)) rgba(15, 42, 26, 0.1); }
    .lp .auth-pro-panel { max-height: calc(100vh - 56px); }
    .lp .auth-pro-alerts { margin-bottom: calc(10 * var(--ucc)); }
    .lp .auth-pro-alerts .alert { font-size: calc(12 * var(--ucc)); padding: calc(9 * var(--ucc)) calc(12 * var(--ucc)); border-radius: calc(10 * var(--ucc)); line-height: 1.4; }
    .lp .auth-pro-throttle-note { font-size: calc(11.5 * var(--ucc)); margin-top: calc(8 * var(--ucc)); }
    .lp .lp-card-logo { display: block; width: calc(146 * var(--ucc)); margin: 0 0 calc(14 * var(--ucc)); }
    .lp .auth-pro-card h3.auth-pro-welcome { font-size: calc(27 * var(--ucc)); }
    .lp .auth-pro-subtitle { font-size: calc(13.5 * var(--ucc)); margin: calc(4 * var(--ucc)) 0 calc(16 * var(--ucc)); }
    .lp .auth-pro-form .form-group { margin-bottom: calc(12 * var(--ucc)); }
    .lp .auth-pro-form label { font-size: calc(12.5 * var(--ucc)); margin-bottom: calc(6 * var(--ucc)); }
    .lp .lp-field > .lp-ico { left: calc(13 * var(--ucc)); width: calc(16 * var(--ucc)); height: calc(16 * var(--ucc)); }
    .lp .auth-pro-form .lp-field input:not([type="checkbox"]):not([type="hidden"]) { padding: calc(10 * var(--ucc)) calc(12 * var(--ucc)) calc(10 * var(--ucc)) calc(38 * var(--ucc)); font-size: calc(13.5 * var(--ucc)); border-radius: calc(9 * var(--ucc)); }
    .lp .auth-pro-form .auth-pw-wrap input#id_password { padding-right: calc(42 * var(--ucc)); }
    .lp .auth-pro-remember { margin: calc(2 * var(--ucc)) 0 calc(12 * var(--ucc)) !important; }
    .lp .auth-pro-remember-label { font-size: calc(13 * var(--ucc)) !important; }
    .lp .auth-pro-remember-hint { font-size: calc(11 * var(--ucc)) !important; margin-left: calc(28 * var(--ucc)) !important; }
    .lp .auth-pro-btn { padding: calc(11 * var(--ucc)) calc(20 * var(--ucc)) !important; border-radius: calc(9 * var(--ucc)) !important; font-size: calc(14 * var(--ucc)) !important; }
    .lp-secure { font-size: calc(11.5 * var(--ucc)); margin-top: calc(14 * var(--ucc)); gap: calc(7 * var(--ucc)); }
    .lp-secure svg { width: calc(15 * var(--ucc)); height: calc(15 * var(--ucc)); }
    .lp-help { font-size: calc(11.5 * var(--ucc)); margin-top: calc(12 * var(--ucc)); padding-top: calc(12 * var(--ucc)); }
}
