/* ============================================================
   BankID Login — the website's own design language
   ------------------------------------------------------------
   Values are measured from the live site (mirror design system):
   Jost light for headings, Karla for body, bone ground, espresso
   hero, ivory card, espresso primary pill, frosted secondary
   pill. The fonts are provided by the theme on the site-chrome
   page template; the fallback stacks below keep the page
   readable anywhere else.

   Page composition (login.php):
     .pvmp-login-page
       .pvmp-login-hero        espresso welcome band, flows from header
       .pvmp-login-stage       photo + card, overlapping the hero seam
         .pvmp-login-photo     a site photograph (optional)
         .pvmp-login           the ivory login card
   ============================================================ */

.pvmp-login-page {
    /* Local palette — the site's measured values. Scoped here so the
       portal's own token layer (pv-tokens.css) stays untouched. */
    --pvl-ink: #2A251F;
    --pvl-espresso: #1B1712;
    --pvl-text: #514840;
    --pvl-mut: #6A5F53;
    --pvl-bone: #F5EFE5;
    --pvl-bone-soft: rgba(245, 239, 229, 0.78);
    --pvl-card: #EFE7DA;
    --pvl-card-line: rgba(255, 255, 255, 0.94);
    --pvl-card-shadow: 0 16px 38px -26px rgba(46, 44, 43, 0.45);
    --pvl-btn-shadow: 0 10px 24px -14px rgba(46, 44, 43, 0.6);
    --pvl-frost: rgba(255, 255, 255, 0.72);
    --pvl-frost-line: rgba(255, 255, 255, 0.95);
    --pvl-frost-shadow: 0 14px 34px -16px rgba(46, 44, 43, 0.5);
    --pvl-display: 'Jost', Futura, 'Avenir Next', system-ui, sans-serif;
    --pvl-body: 'Karla', 'Helvetica Neue', system-ui, sans-serif;

    box-sizing: border-box;
    font-family: var(--pvl-body);
    color: var(--pvl-text);
}

.pvmp-login-page *,
.pvmp-login-page *::before,
.pvmp-login-page *::after {
    box-sizing: inherit;
}

/* Welcome hero — the espresso band the site's inner pages open with.
   V6 gradient system (Ali, gradient gallery 2026-08-30, "V6 Fullt
   system", released on the theme footer 2026-08-31 — see .pv-footer in
   provitalia-wp-theme tailwind/custom/components/blocks.css): a warmer
   135deg konjak gradient. The ring/glow this band shares below are
   updated to the matching V6 treatment in the commits that follow.
   ---------------------------------------------------------- */
.pvmp-login-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--pvl-espresso);
    background-image: linear-gradient(135deg, var(--pvl-espresso) 0%, #332818 38%, #5A4630 70%, #8F6E4C 100%);
    color: var(--pvl-bone);
    text-align: center;
    /* !important: the site stylesheet flattens every section inside main
       to 56px padding with !important (main>div>section); the class
       selector here outweighs that element selector among importants. */
    padding: clamp(2.25rem, 6vw, 4rem) 1.5rem clamp(5.75rem, 11vw, 8rem) !important;
}

/* Hairline — cognac thread where the band meets the stage below (the
   footer carries the same thread on its top edge, where IT meets the
   page above; here the hero is at the top of the page, so the seam is
   the band's bottom edge instead). Replaces the old ring decor outright
   — Ali's call: the height-scaled ring is dead, not carried forward in
   any form. */
.pvmp-login-hero::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(200, 138, 78, 0) 4%, rgba(200, 138, 78, 0.65) 38%, rgba(220, 167, 110, 0.8) 55%, rgba(200, 138, 78, 0) 96%);
    pointer-events: none;
}

/* Glow — a soft two-layer highlight over the whole band, also behind
   the text: a warm konjak wash from the bottom-right plus a cooler
   bone lift from the top-left. */
.pvmp-login-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(110% 85% at 88% 112%, rgba(200, 138, 78, 0.40), transparent 58%),
        radial-gradient(120% 90% at 10% -14%, rgba(220, 207, 187, 0.15), transparent 50%);
    pointer-events: none;
}

/* Grain — subtle film-grain texture over the gradient, blended so it
   only ever perturbs contrast rather than adding visible noise. Its own
   layer (an element, not ::before/::after) because opacity + blend-mode
   need to apply to the whole layer, and both pseudo-elements above are
   already spoken for (hairline, glow). */
.pvmp-login-hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.055;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.pvmp-login-hero__title {
    position: relative;
    z-index: 1;
    font-family: var(--pvl-display);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pvl-bone);
    margin: 0 0 0.875rem;
    text-wrap: balance;
}

.pvmp-login-hero__sub {
    position: relative;
    z-index: 1;
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: 1.6;
    color: var(--pvl-bone-soft);
    max-width: 44rem;
    margin: 0 auto;
    text-wrap: balance;
}

/* Stage — photo and card overlap the seam between hero and bone.
   ---------------------------------------------------------- */
.pvmp-login-stage {
    width: min(960px, calc(100% - 2rem));
    margin: calc(-1 * clamp(3rem, 6vw, 4.5rem)) auto 0;
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: stretch;
}

@media (min-width: 960px) {
    /* Kajal 2026-09-15: the photo and the card the same size — two equal
       columns (the card used to be a fixed 440px, the photo took the rest). */
    .pvmp-login-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pvmp-login-photo {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--pvl-card-line);
    box-shadow: var(--pvl-card-shadow);
}

/* Below the two-column width the card comes first (the task people came
   for), and the photo follows below it in its natural shape — never
   cropped down to a letterbox sliver. */
@media (max-width: 959px) {
    .pvmp-login-photo {
        order: 2;
        aspect-ratio: 16 / 10;
    }

    .pvmp-login-page .pvmp-login {
        order: 1;
    }
}

.pvmp-login-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* The login card
   ---------------------------------------------------------- */
.pvmp-login {
    background: var(--pvl-card);
    border: 1px solid var(--pvl-card-line);
    border-radius: 20px;
    padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 4.5vw, 2.25rem);
    text-align: center;
    box-shadow: var(--pvl-card-shadow);
}

/* Outside the stage (plugin used without the site-chrome template)
   the card still centers itself politely. */
.pvmp-login-page .pvmp-login {
    width: auto;
    margin: 0;
}

.pvmp-login__header {
    font-family: var(--pvl-display);
    font-weight: 300;
    font-size: clamp(1.875rem, 4vw, 2.375rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--pvl-ink);
    margin: 0 0 0.875rem;
}

.pvmp-login__description {
    font-size: 1rem;
    color: var(--pvl-mut);
    line-height: 1.6;
    margin: 0 0 2rem;
    text-wrap: balance;
}

/* Login button group — fixed roles, real DOM order
   ----------------------------------------------------------
   Ali's call (2026-08-31): same-device is always the PRIMARY path
   (dark pill, first on screen) and QR is always SECONDARY (light
   pill) below it — on every device, no adaptive swap. #pvmp-login-code
   (same device) is the first button in the markup below and carries
   --primary; #pvmp-login-scan (QR) is second and carries --secondary.
   The real DOM order is what screen readers see, so there is no CSS
   order trick here — role classes only own color/icon, never
   position. */
.pvmp-login__actions {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

/* Sizing is clamp()-scaled, not a fixed size: at the 320px floor the
   longer "BankID på denna enhet" label needs a tighter pill (less
   padding, smaller type/gap) to stay on one line — same rule serves
   both buttons, so they always match each other exactly. */
#pvmp-login-scan,
#pvmp-login-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 0.625rem);
    width: 100%;
    min-height: 52px;
    padding: 0.875rem clamp(1rem, 4vw, 1.5rem);
    border-radius: 999px;
    font-size: clamp(0.875rem, 3.4vw, 1rem);
    font-weight: 500;
    font-family: var(--pvl-body);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
}

/* Keyboard focus: on the site-chrome template the site's own focus ring
   applies (scoped in the theme's mirror CSS and deliberately stronger in
   the cascade); anywhere else the browser's default ring stays intact. */

.pvmp-login__action--primary {
    border: none;
    background: var(--pvl-ink);
    color: var(--pvl-bone);
    box-shadow: var(--pvl-btn-shadow);
}

.pvmp-login__action--primary:hover {
    background: #3A332B;
    transform: translateY(-1px);
}

.pvmp-login__action--primary:active { transform: scale(0.98); }

/* Official BankID logo mark (verbatim paths, viewBox 0 0 619.2 513 — see
   staging/bevis/refill-design-2026-08-28/canvas-snapshot/Previewbild.dc.html
   in the docs repo). Bone fill on the dark (--primary) pill, ink fill on
   the light (--secondary) pill. */
.pvmp-login__action--primary::before {
    content: '';
    display: inline-block;
    width: 1.75rem;
    height: 1.45rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 619.2 513' fill='%23F5EFE5'%3E%3Cpath d='M251.3,263.4l13.2-83.2c-5.2,0-14.1,0-14.1,0c-6.6,0-15.1-3.7-17.6-10.5c-0.8-2.3-2.7-10.2,8.2-17.9c3.9-2.7,6.4-5.7,6.9-8c0.5-2.4-0.1-4.5-1.8-6.1c-2.4-2.3-7.1-3.6-13.1-3.6c-10.1,0-17.2,5.8-17.9,10c-0.5,3.1,1.9,5.6,4,7.2c6.3,4.7,7.8,11.5,3.9,17.9c-4,6.6-12.7,10.9-22,11c0,0-9.2,0-14.4,0c-1.2,8.1-20.8,132.3-22.3,142.1h77.8C242.8,318,246.4,294.5,251.3,263.4L251.3,263.4z'/%3E%3Cpath d='M160.1,351.1H192c13.6,0,16.9,6.9,15.9,13.2c-0.8,5.1-4.3,8.9-10.3,11.4c7.6,2.9,10.6,7.4,9.5,14.5c-1.4,8.9-9.1,15.5-19.2,15.5h-36.3L160.1,351.1z M181.2,373.7c6.2,0,9.1-3.3,9.7-7.2c0.6-4.2-1.3-7.1-7.5-7.1h-5.5l-2.2,14.3H181.2z M177.8,397.2c6.4,0,10.1-2.6,11-7.9c0.7-4.6-1.9-7.3-8.1-7.3h-6.2l-2.4,15.3H177.8z'/%3E%3Cpath d='M251.8,406.1c-8.3,0.6-12.3-0.3-14.3-3.9c-4.4,2.7-9.3,4.1-14.5,4.1c-9.4,0-12.7-4.9-11.8-10.3c0.4-2.6,1.9-5.1,4.3-7.2c5.2-4.5,18-5.1,23-8.5c0.4-3.8-1.1-5.2-5.8-5.2c-5.5,0-10.1,1.8-18,7.2l1.9-12.4c6.8-4.9,13.4-7.2,21-7.2c9.7,0,18.3,4,16.7,14.6l-1.9,12c-0.7,4.2-0.5,5.5,4.2,5.6L251.8,406.1z M237.4,387.2c-4.4,2.8-12.6,2.3-13.5,8.1c-0.4,2.7,1.3,4.7,4,4.7c2.6,0,5.8-1.1,8.4-2.9c-0.2-1-0.1-2,0.2-3.9L237.4,387.2z'/%3E%3Cpath d='M267.3,363.4h16.6l-0.9,5.5c5.3-4.5,9.3-6.2,14.5-6.2c9.3,0,13.6,5.7,12.1,15l-4.3,27.9h-16.6l3.6-23.1c0.7-4.2-0.6-6.2-3.8-6.2c-2.6,0-5,1.4-7.3,4.5l-3.8,24.7h-16.6L267.3,363.4z'/%3E%3Cpath d='M322.6,351.1h16.6l-4.2,26.8l15.9-14.5h20.5l-20.4,18l16.4,24.2h-20.9L333.9,386h-0.2l-3,19.5h-16.6L322.6,351.1z'/%3E%3Cpath d='M381.3,351.1h19.1l-8.4,54.5h-19.1L381.3,351.1z'/%3E%3Cpath d='M409.7,351.1H437c21.1,0,27.2,15.3,25.2,28c-1.9,12.4-11.7,26.5-30.2,26.5h-30.8L409.7,351.1z M427.4,392.6c9.3,0,14.4-4.6,15.9-14.3c1.1-7.2-1.1-14.3-11.4-14.3h-5.1l-4.4,28.6H427.4z'/%3E%3Cpath d='M355.9,107.5h-79.5l-10.6,67.3l13.5,0c7.4,0,14.4-3.4,17.4-8.3c1-1.6,1.4-3,1.4-4.3c0-2.8-1.9-4.9-3.8-6.3c-5.2-3.9-6.3-8-6.3-10.9c0-0.6,0-1.1,0.1-1.6c1.1-7.1,10.7-14.8,23.4-14.8c7.6,0,13.4,1.8,16.9,5.1c3.1,2.9,4.3,7,3.4,11.3c-1.1,5.1-6.2,9.3-9.1,11.4c-7.7,5.4-6.7,10.1-6.2,11.5c1.6,4.2,7.7,6.9,12.4,6.9h20.6c0,0,0,0,0,0.1c28,0.2,43,13.1,38.3,43.1c-4.4,27.9-25.8,39.9-51.3,40.1l-10.1,64.4h14.9c62.9,0,114.3-40.4,124.4-104.2C478.2,139.1,427.9,107.5,355.9,107.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.pvmp-login__action--secondary {
    border: 1px solid var(--pvl-frost-line);
    background: var(--pvl-frost);
    color: var(--pvl-ink);
    box-shadow: var(--pvl-frost-shadow);
}

.pvmp-login__action--secondary:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.pvmp-login__action--secondary:active { transform: scale(0.98); }

.pvmp-login__action--secondary::before {
    content: '';
    display: inline-block;
    width: 1.75rem;
    height: 1.45rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 619.2 513' fill='%232A251F'%3E%3Cpath d='M251.3,263.4l13.2-83.2c-5.2,0-14.1,0-14.1,0c-6.6,0-15.1-3.7-17.6-10.5c-0.8-2.3-2.7-10.2,8.2-17.9c3.9-2.7,6.4-5.7,6.9-8c0.5-2.4-0.1-4.5-1.8-6.1c-2.4-2.3-7.1-3.6-13.1-3.6c-10.1,0-17.2,5.8-17.9,10c-0.5,3.1,1.9,5.6,4,7.2c6.3,4.7,7.8,11.5,3.9,17.9c-4,6.6-12.7,10.9-22,11c0,0-9.2,0-14.4,0c-1.2,8.1-20.8,132.3-22.3,142.1h77.8C242.8,318,246.4,294.5,251.3,263.4L251.3,263.4z'/%3E%3Cpath d='M160.1,351.1H192c13.6,0,16.9,6.9,15.9,13.2c-0.8,5.1-4.3,8.9-10.3,11.4c7.6,2.9,10.6,7.4,9.5,14.5c-1.4,8.9-9.1,15.5-19.2,15.5h-36.3L160.1,351.1z M181.2,373.7c6.2,0,9.1-3.3,9.7-7.2c0.6-4.2-1.3-7.1-7.5-7.1h-5.5l-2.2,14.3H181.2z M177.8,397.2c6.4,0,10.1-2.6,11-7.9c0.7-4.6-1.9-7.3-8.1-7.3h-6.2l-2.4,15.3H177.8z'/%3E%3Cpath d='M251.8,406.1c-8.3,0.6-12.3-0.3-14.3-3.9c-4.4,2.7-9.3,4.1-14.5,4.1c-9.4,0-12.7-4.9-11.8-10.3c0.4-2.6,1.9-5.1,4.3-7.2c5.2-4.5,18-5.1,23-8.5c0.4-3.8-1.1-5.2-5.8-5.2c-5.5,0-10.1,1.8-18,7.2l1.9-12.4c6.8-4.9,13.4-7.2,21-7.2c9.7,0,18.3,4,16.7,14.6l-1.9,12c-0.7,4.2-0.5,5.5,4.2,5.6L251.8,406.1z M237.4,387.2c-4.4,2.8-12.6,2.3-13.5,8.1c-0.4,2.7,1.3,4.7,4,4.7c2.6,0,5.8-1.1,8.4-2.9c-0.2-1-0.1-2,0.2-3.9L237.4,387.2z'/%3E%3Cpath d='M267.3,363.4h16.6l-0.9,5.5c5.3-4.5,9.3-6.2,14.5-6.2c9.3,0,13.6,5.7,12.1,15l-4.3,27.9h-16.6l3.6-23.1c0.7-4.2-0.6-6.2-3.8-6.2c-2.6,0-5,1.4-7.3,4.5l-3.8,24.7h-16.6L267.3,363.4z'/%3E%3Cpath d='M322.6,351.1h16.6l-4.2,26.8l15.9-14.5h20.5l-20.4,18l16.4,24.2h-20.9L333.9,386h-0.2l-3,19.5h-16.6L322.6,351.1z'/%3E%3Cpath d='M381.3,351.1h19.1l-8.4,54.5h-19.1L381.3,351.1z'/%3E%3Cpath d='M409.7,351.1H437c21.1,0,27.2,15.3,25.2,28c-1.9,12.4-11.7,26.5-30.2,26.5h-30.8L409.7,351.1z M427.4,392.6c9.3,0,14.4-4.6,15.9-14.3c1.1-7.2-1.1-14.3-11.4-14.3h-5.1l-4.4,28.6H427.4z'/%3E%3Cpath d='M355.9,107.5h-79.5l-10.6,67.3l13.5,0c7.4,0,14.4-3.4,17.4-8.3c1-1.6,1.4-3,1.4-4.3c0-2.8-1.9-4.9-3.8-6.3c-5.2-3.9-6.3-8-6.3-10.9c0-0.6,0-1.1,0.1-1.6c1.1-7.1,10.7-14.8,23.4-14.8c7.6,0,13.4,1.8,16.9,5.1c3.1,2.9,4.3,7,3.4,11.3c-1.1,5.1-6.2,9.3-9.1,11.4c-7.7,5.4-6.7,10.1-6.2,11.5c1.6,4.2,7.7,6.9,12.4,6.9h20.6c0,0,0,0,0,0.1c28,0.2,43,13.1,38.3,43.1c-4.4,27.9-25.8,39.9-51.3,40.1l-10.1,64.4h14.9c62.9,0,114.3-40.4,124.4-104.2C478.2,139.1,427.9,107.5,355.9,107.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Cancel control — an escape hatch for an active flow, not a third
   action competing with the two buttons above it. assets/js/bankid.js
   toggles the native `hidden` attribute in the same setBusy() call that
   disables #pvmp-login-scan/#pvmp-login-code, so it only ever shows
   while a flow is running. Ink-on-card text (matches
   .pvmp-login__description/.pvmp-login__feedback), not a pill — a quiet
   link, deliberately less prominent than the two BankID buttons.
   ---------------------------------------------------------- */
.pvmp-login__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.375rem 0.875rem;
    border: none;
    background: none;
    color: var(--pvl-mut);
    font-family: var(--pvl-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 150ms ease-out, background-color 150ms ease-out, transform 150ms ease-out;
}

.pvmp-login__cancel[hidden] {
    display: none;
}

.pvmp-login__cancel:hover {
    color: var(--pvl-ink);
    background: rgba(42, 37, 31, 0.06);
}

.pvmp-login__cancel:focus-visible {
    outline: 2px solid var(--pvl-ink);
    outline-offset: 2px;
}

.pvmp-login__cancel:active {
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .pvmp-login__cancel {
        transition: none;
    }
}

/* QR code area — a framed white panel with numbered steps beneath.
   The steps stay hidden until the QR code is actually shown.
   ---------------------------------------------------------- */
.pvmp-login__qrcode {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
}

.pvmp-login__qrcode:empty {
    margin-top: 0;
}

.pvmp-login__qrcode svg,
.pvmp-login__qrcode img {
    border-radius: 16px;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--pvl-card-line);
    box-shadow: var(--pvl-card-shadow);
    max-width: 100%;
    height: auto;
}

.pvmp-login__steps {
    list-style: none;
    counter-reset: pvl-step;
    margin: 1.25rem auto 0;
    padding: 0;
    max-width: 280px;
    display: grid;
    gap: 0.5rem;
    text-align: left;
}

#pvmp-qrcode:empty ~ .pvmp-login__steps {
    display: none;
}

.pvmp-login__steps li {
    counter-increment: pvl-step;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--pvl-text);
}

.pvmp-login__steps li::before {
    content: counter(pvl-step);
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--pvl-ink);
    color: var(--pvl-bone);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Feedback
   ---------------------------------------------------------- */
.pvmp-login__feedback {
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    color: var(--pvl-mut);
    min-height: 1.5rem;
    line-height: 1.5;
}

.pvmp-login__feedback:empty {
    margin-top: 0;
}

/* Gentle motion — the site's fade-and-rise reveal, staggered.
   ---------------------------------------------------------- */
@keyframes pvl-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.pvmp-login-hero__title { animation: none; }
.pvmp-login-hero__sub { animation: none; }
.pvmp-login-page .pvmp-login-photo { animation: none; }
.pvmp-login-page .pvmp-login { animation: none; }
.pvmp-login__qrcode img { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .pvmp-login-hero__title,
    .pvmp-login-hero__sub,
    .pvmp-login-page .pvmp-login-photo,
    .pvmp-login-page .pvmp-login,
    .pvmp-login__qrcode img {
        animation: none;
    }
}

/* Designsystem Version 1 | retain the existing BankID flow and composition. */
.pvmp-login-page { --pvl-ink: #2B1A12; --pvl-espresso: #2B1A12; --pvl-text: #4A2C1E; --pvl-mut: #7A5A47; --pvl-bone: #F7F5F1; --pvl-bone-soft: rgba(247,245,241,.82); --pvl-card: #FFFFFF; --pvl-card-line: #E4DCD3; --pvl-card-shadow: none; --pvl-btn-shadow: none; --pvl-frost-shadow: none; --pvl-frost-line: #2B1A12; }
.pvmp-login-hero { background-image: linear-gradient(180deg,#4A2C1E,#2B1A12); }
.pvmp-login-hero::before, .pvmp-login-hero::after, .pvmp-login-hero__grain { display: none; }
.pvmp-login, .pvmp-login-photo { border-radius: 12px; }
.pvmp-login__action--secondary, .pvmp-login__action--secondary:hover { background: #FFFFFF; }
.pvmp-login__action--primary:hover { background: #4A2C1E; }
.pvmp-login__description { max-width: 40ch; margin-inline: auto; }
.pvmp-login-page :where(h1,h2,h3) { text-wrap: balance; }
.pvmp-login-page :where(p,button,a,span) { text-wrap: pretty; }
.pvmp-login, .pvmp-login-photo { border: 0; }

.pvmp-login-page :where(button,a):hover { transition-duration: 0ms; }
/* The optional photo may be absent: center the one remaining card, without
   reserving an empty photo column. Keep the card above the hero seam. */
.pvmp-login-stage { position: relative; z-index: 1; }
.pvmp-login-stage:not(:has(.pvmp-login-photo)) { max-width: 520px; grid-template-columns: minmax(0,1fr); }

/* Shared portal scale in the whole-portal design proposal. */
.pvmp-login-hero__title { font:500 24px/1.3 var(--font-display); }
.pvmp-login__header { font:500 17px/1.3 var(--font-display); }
.pvmp-login-hero__sub,.pvmp-login__description { font:400 16px/1.5 var(--font-text); }
.pvmp-login__actions button { font:500 14px/1.4 var(--font-text); min-height:44px; }

/* Keep the accepted login wrapping stronger than the portal typography layer. */
.pvmp-login-page .pvmp-login-hero__sub,
.pvmp-login-page .pvmp-login__description { text-wrap: balance; }
