/* arriviture® Log in + Forgot password — split-screen OPTIONS (demo, 26 Oct). Loaded after jts.css + auth.css.
   Photo left, form right, divided on the JTS logo's 18° slant (same angle as .news-btn, .equip and .rs-card accents).
   The slant is a skewX(var(--slant)) layer behind the right-hand panel (10deg since 26 Oct), pivoting on its middle so the split reads 50/50. */

.as-demo-bar { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; padding: .55rem var(--gutter); background: var(--gold-pale); color: var(--navy); font-size: .8125rem; border-bottom: 1px solid #E9DDBE; }
.as-demo-bar span { font-weight: 700; margin-right: auto; }
.as-demo-bar a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.auth-split { --slant: -10deg; /* divider angle (26 Oct: reduced from the logo's 18deg at Bimsara's request) */ --slant-in: 0rem; /* 26 Oct: slant pivots on its middle, so the visual split is exactly 50/50 */ position: relative; isolation: isolate; overflow: hidden; background: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(660px, calc(100svh - var(--util-h) - var(--head-h)), 860px); }
.as-media { position: absolute; inset: 0 auto 0 0; width: calc(50% + 10rem); z-index: 0; background: var(--navy); }
.as-media img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 60%; display: block; }

.as-panel { grid-column: 2; position: relative; z-index: 2; display: flex; align-items: center;
  padding: clamp(3rem, 2rem + 3vw, 5rem) var(--gutter) clamp(3rem, 2rem + 3vw, 5rem) clamp(6rem, 3rem + 5vw, 8.5rem); }
.as-panel::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--slant-in)); right: -50vw; z-index: -1;
  background: #fff; transform: skewX(var(--slant)); transform-origin: left center; }
.as-inner { width: 100%; max-width: 28.5rem; }

/* panel content */
.as-logo img { width: 112px; height: auto; display: block; }
.as-logo .arr-lock { width: 190px; }
.as-title { margin: 1.4rem 0 0; font-weight: 300; font-variation-settings: "wdth" 116; font-size: clamp(1.9rem, 1.4rem + 1.3vw, 2.6rem); line-height: 1.08; letter-spacing: -.01em; color: var(--navy); }
.as-title sup { font-size: .4em; vertical-align: super; letter-spacing: 0; }
.as-lede { margin: .85rem 0 0; color: var(--ink-2); font-size: .9375rem; max-width: 40ch; }
.as-form.lead-form { padding: 0; margin-top: 1.75rem; gap: 1rem; background: none; box-shadow: none; }
.as-form .as-title { margin-top: 1.4rem; }
.as-form .as-lede { margin-top: 0; }
#forgotForm .as-title { margin-top: 0; }
.as-form .auth-links { margin-top: .25rem; }
.as-help { margin: 1.5rem 0 0; font-size: .8125rem; color: var(--ink-3); line-height: 1.9; }
/* links use the sitewide underline (.link-line / p a): 2px line at rest, gold line grows on hover; gold light on navy */
.auth-split .auth-links a { text-decoration: none; }
.auth-sent .thanks-tick { margin-top: 0; }

/* A · Clean slant — navy fade + one line of copy over the photo (also F) */
.as-a .as-media::after, .as-f .as-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(10,31,60,.88) 0%, rgba(10,31,60,.45) 38%, rgba(10,31,60,0) 62%); }
.as-cap { position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); max-width: 25rem; color: var(--on-navy); }
.as-cap p { margin: .6rem 0 0; color: var(--on-navy-2); font-size: .9375rem; }
.as-cap .as-cap-title { margin: 0; color: #fff; font-weight: 300; font-variation-settings: "wdth" 116; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1.05; }
.as-cap::before { content: ""; display: block; width: 72px; height: 6px; margin-bottom: 1.1rem; background: var(--gold-lt); transform: skewX(-18deg); transform-origin: bottom left; }

/* B · Gold seam — a gold 18° bar down the divider */
.as-b .as-panel::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--slant-in) - 12px); width: 12px; z-index: -1;
  background: var(--gold-lt); transform: skewX(var(--slant)); transform-origin: left center; }

/* C · Navy band — photo | navy band (lockup + what's inside) | form */
.as-c { grid-template-columns: minmax(0, 30fr) minmax(0, 30fr) minmax(0, 40fr); }
.as-c .as-media { width: calc(30% + 10rem); }
.as-c .as-band { grid-column: 2; position: relative; z-index: 1; display: flex; align-items: center; padding: 3rem 2.5rem 3rem 3.25rem; color: var(--on-navy); }
.as-c .as-band::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--slant-in)); right: -10rem; z-index: -1; background: var(--navy); transform: skewX(var(--slant)); transform-origin: left center; }
.as-c .as-panel { grid-column: 3; }
.as-band-in { max-width: 17.5rem; }
.as-band-lock .arr-lock { width: 200px; }
.as-band-title { margin: 1.75rem 0 0; color: #fff; font-weight: 300; font-variation-settings: "wdth" 116; font-size: 1.5rem; line-height: 1.1; }
.as-band-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.as-band-list li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; font-size: .8125rem; color: var(--on-navy-2); line-height: 1.45; }
.as-band-list .icon { width: 16px; height: 16px; margin-top: .15rem; color: var(--gold-lt); }
.as-band-list strong { display: block; color: #fff; font-weight: 600; font-size: .875rem; }
.as-band-p { margin: .75rem 0 1.25rem; color: var(--on-navy-2); font-size: .875rem; }

/* D · Navy form side */
.as-d .as-panel::before { background: var(--navy); }
.as-d .as-panel { color: var(--on-navy); }
.as-d .as-title { color: #fff; }
.as-d .as-lede, .as-d .as-help { color: var(--on-navy-2); }
.as-d .f label { color: var(--on-navy); }
.as-d .f input { border-color: transparent; }
.as-d .f input:focus { outline-color: rgba(214,181,102,.55); border-color: var(--gold-lt); }
.as-d .auth-links { border-top-color: var(--navy-line); }
.as-d .f-reveal { color: var(--blue); }
.as-d .f-msg { color: #fff; }
.as-d .as-logo-w .arr-lock { width: 170px; }

/* E · Aerial + card — the form in the 12px utility card on a paper slant */
.as-e .as-panel::before { background: var(--paper); }
.as-e .as-inner { background: #fff; border-radius: var(--radius-box, 12px); box-shadow: var(--shadow-card); padding: clamp(1.75rem, 1.25rem + 1.4vw, 2.5rem); max-width: 30rem; }
.as-e .as-media img { object-position: 50% 50%; }
.as-e .as-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,31,60,.55), rgba(10,31,60,0) 45%); }
.as-cap-sm { bottom: 2rem; }
.as-cap-sm p { margin: 0; color: #fff; font-size: .9375rem; font-weight: 600; }
.as-cap-sm::before { width: 48px; height: 5px; margin-bottom: .75rem; }

/* tablet + mobile: photo on top with the slant along its bottom edge, form below */
@media (max-width: 1023px) {
  .auth-split, .as-c { display: flex; flex-direction: column; min-height: 0; }
  .as-media, .as-c .as-media { position: relative; inset: auto; width: 100%; height: clamp(190px, 38vw, 330px); flex: none;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); }
  .as-panel, .as-c .as-panel { padding: clamp(1.75rem, 1rem + 3vw, 3rem) var(--gutter) clamp(3rem, 2rem + 4vw, 4.5rem); margin-top: -1px; }
  .as-panel::before, .as-panel::after, .as-b .as-panel::after { display: none; }
  .as-inner { max-width: 34rem; margin: 0 auto; }
  .as-cap { bottom: 22%; }
  .as-cap .as-cap-title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.1rem); }
  .as-cap p:not(.as-cap-title) { display: none; }
  /* B: the gold seam becomes a slanted gold edge under the photo */
  .as-b .as-media { background: var(--gold-lt); }
  .as-b .as-media img { clip-path: polygon(0 0, 100% 0, 100% calc(72% - 9px), 0 calc(100% - 9px)); }
  .as-cap-sm { display: none; }
  /* C: band after the form */
  .as-c .as-band { order: 3; padding: 3rem var(--gutter) 3.5rem; background: var(--navy); clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%); padding-top: 4.5rem; }
  .as-c .as-band::before { display: none; }
  .as-c .as-panel { order: 2; }
  .as-band-in { max-width: 34rem; margin: 0 auto; width: 100%; }
  /* D + E: panel colour carries on below the photo */
  .as-d .as-panel { background: var(--navy); }
  .as-d .as-media { background: var(--navy); }
  .as-d { background: var(--navy); }
  .as-e { background: var(--paper); }
  .as-e .as-panel { margin-top: -3.5rem; position: relative; z-index: 3; }
}
@media (max-width: 599px) {
  .as-logo img { width: 96px; }
  .as-d .as-logo-w .arr-lock, .as-logo .arr-lock { width: 150px; }
  .as-title { font-size: 1.85rem; }
  .as-e .as-panel { margin-top: -2.5rem; }
}

/* .on-navy (sitewide) paints a navy background; on the split the slanted layer does that, so clear it on desktop */
@media (min-width: 1024px) { .auth-split .as-panel.on-navy { background: none; } }

/* F · chosen (26 Oct): D's navy form side + A's photo caption. Photo kept on its truck; caption sits bottom-left. */
.as-f .as-media img { object-position: 30% 62%; }
@media (min-width: 1024px) { .as-f .as-cap { max-width: 24rem; } }
@media (max-width: 1023px) {
  .as-f .as-media { height: clamp(240px, 56vw, 380px); }
  .as-f .as-media img { object-position: 46% 38%; }
  .as-f .as-media::after { background: linear-gradient(8deg, rgba(10,31,60,.9) 0%, rgba(10,31,60,.55) 30%, rgba(10,31,60,0) 55%); }
  .as-f .as-cap { bottom: 17%; }
  .as-f .as-cap::before { width: 52px; height: 5px; margin-bottom: .7rem; }
}
@media (max-width: 599px) {
  .as-f .as-cap { bottom: 19%; }
  .as-f .as-cap .as-cap-title { font-size: 1.45rem; }
}
@media (max-width: 1023px) { .as-f .as-cap { max-width: 62%; right: auto; } }
@media (max-width: 599px) { .as-f .as-cap { bottom: 21%; max-width: 70%; } .as-f .as-cap .as-cap-title { line-height: 1.08; } }

/* ---- 26 Oct (Bimsara): transparent header over the split + Leadership-style footer divider ---- */
/* header is fixed and clear (body.hero-overlay); the split runs up behind it */
body.hero-overlay .auth-split { min-height: clamp(760px, 100svh, 980px); }
body.hero-overlay .as-panel { padding-top: calc(var(--hdr-h, 112px) + clamp(2.5rem, 1.5rem + 2.5vw, 4rem)); }
body.hero-overlay .as-c .as-band { padding-top: calc(var(--hdr-h, 112px) + 3rem); }
/* navy wash at the top of the photo so the white nav reads (same as the hero's top gradient) */
body.hero-overlay .as-media::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: calc(var(--hdr-h, 112px) + 140px);
  background: linear-gradient(180deg, rgba(10,31,60,.8) 0%, rgba(10,31,60,.35) 55%, rgba(10,31,60,0) 100%); pointer-events: none; }
/* demo pages: the option bar moves to the bottom of the screen so it does not sit under the header */
body.hero-overlay .as-demo-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; border-bottom: 0; border-top: 1px solid #E9DDBE; box-shadow: 0 -6px 18px -12px rgba(6,21,43,.4); }
@media (max-width: 1023px) {
  body.hero-overlay .auth-split { min-height: 0; }
  body.hero-overlay .as-media, body.hero-overlay .as-c .as-media { height: calc(var(--hdr-h, 114px) + clamp(190px, 38vw, 330px)); }
  body.hero-overlay .as-f .as-media { height: calc(var(--hdr-h, 114px) + clamp(240px, 56vw, 380px)); }
  body.hero-overlay .as-b .as-media img { height: calc(var(--hdr-h, 114px) + clamp(190px, 38vw, 330px)); }
  body.hero-overlay .as-panel, body.hero-overlay .as-c .as-band { padding-top: clamp(1.75rem, 1rem + 3vw, 3rem); }
  body.hero-overlay .as-c .as-band { padding-top: 4.5rem; }
  body.hero-overlay .as-media::before { height: calc(var(--hdr-h, 114px) + 60px); }
}
/* footer divider = Leadership page (navy section into the footer): no gap, 1px navy-line rule inside the gutters */
main:has(> .auth-split:last-child) + .site-footer { box-shadow: 0 -6px 0 var(--navy); position: relative; }
main:has(> .auth-split:last-child) + .site-footer > .wrap { position: relative; }
main:has(> .auth-split:last-child) + .site-footer > .wrap::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 0; border-top: 1px solid var(--navy-line); }
/* taller split under the clear header: the slant travels further, so the photo runs further right behind it */
@media (min-width: 1024px) {
  body.hero-overlay .as-media { width: calc(50% + 18rem); }
  body.hero-overlay .as-c .as-media { width: calc(30% + 18rem); }
}
/* small laptops: give the form side more room so the logo clears the slant */
@media (min-width: 1024px) and (max-width: 1279px) {
  .auth-split:not(.as-c) .as-panel { padding-left: 7rem; }
  body.hero-overlay .auth-split:not(.as-c) .as-media { width: calc(50% + 18rem); }
}
@media (min-width: 1024px) and (max-width: 1279px) { .as-f .as-media img { object-position: 82% 62%; } }
@media (min-width: 1024px) and (max-width: 1279px) { .as-f .as-cap { max-width: 18.5rem; } }
@media (min-width: 1280px) { .as-f .as-cap { max-width: 27rem; } .as-f .as-cap .as-cap-title { white-space: nowrap; } }

/* F (26 Oct, Bimsara): arriviture lockup centred in the photo column; no caption, no logo on the form side */
.as-f .as-title { margin-top: 0; }
.as-f .as-media::after { background:
  radial-gradient(ellipse 46% 42% at calc(50% - 9rem) 52%, rgba(10,31,60,.62) 0%, rgba(10,31,60,.28) 60%, rgba(10,31,60,0) 100%),
  linear-gradient(0deg, rgba(10,31,60,.35), rgba(10,31,60,.35)); }
.as-lockup { position: absolute; z-index: 2; top: var(--hdr-h, 112px); bottom: 0; left: 0; right: 18rem;
  display: flex; align-items: center; justify-content: center; padding: 2rem; pointer-events: none; }
.as-lockup .arr-lock { width: clamp(240px, 16vw + 80px, 360px); filter: drop-shadow(0 6px 24px rgba(6,21,43,.45)); }
@media (min-width: 1024px) and (max-width: 1279px) { .as-lockup { padding-right: 3rem; } }
@media (max-width: 1023px) {
  .as-f .as-media::after { background: linear-gradient(0deg, rgba(10,31,60,.45), rgba(10,31,60,.45)); }
  .as-lockup { right: 0; bottom: 14%; padding: 1rem; }
  .as-lockup .arr-lock { width: clamp(170px, 30vw, 260px); }
}
