/* HRMS — sign-in screens. Night indigo art panel + quiet form; marigold is the single accent. */
:root {
  --night: #131B3F;
  --indigo: #26357E;
  --blue: #2563EB;
  --marigold: #F2A93B;
  --mist: #EEF1F8;
  --ink: #1A2138;
  --muted: #5B6480;
  --line: #D9DEEA;
  --surface: #FFFFFF;
  --field: #F7F8FC;
  --display: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #E6E9F5; --muted: #9AA3BF; --line: #2C3557; --surface: #0F1530; --field: #161E40; --mist: #0C1129; }
}
:root[data-theme="dark"] { --ink: #E6E9F5; --muted: #9AA3BF; --line: #2C3557; --surface: #0F1530; --field: #161E40; --mist: #0C1129; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--text); color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 58fr) minmax(380px, 42fr); }

/* ---- art panel ---- */
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 36px 48px 44px;
  background: radial-gradient(900px 600px at 85% 15%, #22306F 0%, transparent 60%), var(--night);
  display: flex; flex-direction: column;
}
.clock { position: relative; z-index: 2; }
.clock-day { font-size: 15px; color: #C7D2FE; letter-spacing: .01em; }
.clock-time { font-family: var(--display); font-weight: 650; letter-spacing: -.04em; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; color: var(--marigold);
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.clock-sec { font-size: .38em; color: #F7C878; opacity: .85; width: 1.3em; }
.clock-ampm { font-size: .3em; font-weight: 500; color: #fff; opacity: .9; }
.clock-date { font-size: 15px; color: #fff; opacity: .9; }

.art { position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: calc(100vh - 330px); min-height: 220px; height: auto; margin: auto; display: block; font-family: var(--text); }
.art .chip { filter: drop-shadow(0 8px 18px rgba(5, 9, 30, .35)); }

.art-copy { position: relative; z-index: 2; max-width: 34rem; }
.art-copy h2 { font-family: var(--display); font-weight: 550; letter-spacing: -.025em; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
.art-copy p { margin: 0; color: #C7D2FE; font-size: 15px; line-height: 1.55; max-width: 30rem; }

/* one orchestrated moment: the network draws itself on first load */
@media (prefers-reduced-motion: no-preference) {
  .art .links path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
  .art .nodes g, .art .chip { opacity: 0; animation: appear .5s ease-out forwards; }
  .art .nodes g:nth-child(1) { animation-delay: .9s; } .art .nodes g:nth-child(2) { animation-delay: 1s; }
  .art .nodes g:nth-child(3) { animation-delay: 1.1s; } .art .nodes g:nth-child(4) { animation-delay: 1.2s; }
  .art .nodes g:nth-child(5) { animation-delay: 1.3s; } .art .nodes g:nth-child(6) { animation-delay: 1.4s; }
  .art .chip:nth-of-type(1) { animation-delay: 1.6s; } .art .chip:nth-of-type(2) { animation-delay: 1.75s; } .art .chip:nth-of-type(3) { animation-delay: 1.9s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---- form panel ---- */
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: var(--surface); }
.form-wrap { width: 100%; max-width: 380px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 500; margin-bottom: 44px; }
.brand b { font-weight: 700; color: var(--blue); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 20px; background: linear-gradient(140deg, var(--blue), var(--indigo)); }

.form-wrap h1 { font-family: var(--display); font-weight: 650; font-size: 32px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.03em; }
.form-wrap .lead { color: var(--muted); margin: 0 0 28px; font-size: 15px; line-height: 1.5; }

.field { margin-bottom: 18px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.field label { font-weight: 600; font-size: 14px; }
.field-head a, .link { color: var(--blue); font-size: 13.5px; text-decoration: none; font-weight: 500; }
.field-head a:hover, .link:hover { text-decoration: underline; }
.control { position: relative; }
.control > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.control input {
  width: 100%; height: 48px; padding: 0 44px 0 42px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.control input::placeholder { color: var(--muted); opacity: .7; }
.control input:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.control .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 18px; }
.control .eye:hover { color: var(--ink); background: var(--mist); }
.control .eye:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.otp input { padding: 0 14px; text-align: center; font-family: var(--display); font-size: 26px; letter-spacing: .35em; height: 58px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.caps { font-size: 13px; color: #B45309; margin-top: 7px; display: flex; gap: 6px; align-items: center; }

.btn {
  width: 100%; height: 50px; margin-top: 8px; border: 0; border-radius: 10px; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer;
  color: #fff; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .05s;
}
.btn:hover { background: #1D4FD8; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }
.btn.is-busy { opacity: .8; cursor: progress; }
.btn.is-busy i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.back { display: block; text-align: center; margin-top: 18px; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; margin-bottom: 22px; border: 1px solid; }
.note i { font-size: 18px; margin-top: 1px; }
.note-error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.note-success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.note-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
:root[data-theme="dark"] .note { background: transparent; }

.fine { margin: 36px 0 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; line-height: 1.4; }

/* ---- responsive ---- */
@media (max-width: 1100px) { .auth-art { padding: 32px 32px 36px; } }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 22px 16px 18px; min-height: 0; }
  .art, .art-copy p { display: none; }
  .art-copy h2 { font-size: 19px; margin: 14px 0 0; }
  .clock-time { font-size: 40px; }
  .auth-form { padding: 32px 16px 40px; align-items: flex-start; }
  .brand { margin-bottom: 28px; }
}

/* ---- photo background (licensed Unsplash image, see assets/img/login/LICENSE.txt) ---- */
.auth-art { background:
    linear-gradient(180deg, rgba(13, 19, 46, .86) 0%, rgba(13, 19, 46, .35) 32%, rgba(13, 19, 46, .25) 55%, rgba(13, 19, 46, .92) 100%),
    var(--photo) center / cover no-repeat, var(--night); }
.art-fill { flex: 1; }
.auth-art .clock-day, .auth-art .clock-date, .art-copy p { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.art-copy h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.photo-credit { position: absolute; right: 16px; bottom: 12px; z-index: 3; font-size: 11px; color: rgba(255, 255, 255, .7); text-decoration: none; }
.photo-credit:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .auth-art { background: linear-gradient(180deg, rgba(13, 19, 46, .78), rgba(13, 19, 46, .9)), var(--photo) center 30% / cover no-repeat, var(--night); }
  .photo-credit { display: none; }
}
/* security note on one line */
.fine { white-space: nowrap; width: max-content; max-width: calc(100vw - 32px); font-size: 12px; }
@media (max-width: 480px) { .fine { white-space: normal; width: auto; } }

/* ================= Right panel: canvas + elevated card ================= */
.auth-form { position: relative; overflow: hidden; background: #F4F7FD; padding: 40px 32px; }
.form-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(36, 87, 214, .10) 1px, transparent 1.2px); background-size: 22px 22px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob.b1 { width: 420px; height: 420px; right: -140px; top: -120px; background: #9DB8FF; }
.blob.b2 { width: 360px; height: 360px; left: -150px; bottom: -140px; background: #FFD59A; opacity: .5; }
.form-stack { position: relative; z-index: 1; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.form-card { width: 100%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid #E3E9F6; border-radius: 20px;
  padding: 34px 34px 26px; box-shadow: 0 24px 60px -24px rgba(20, 40, 100, .28), 0 2px 6px rgba(20, 40, 100, .05); position: relative; }
.form-card::before { content: ""; position: absolute; left: 34px; right: 34px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #2457D6, #6A8DFF 60%, #F2A93B); }
.form-card .brand { margin-bottom: 26px; }
.form-card h1 { font-size: 28px; }
.form-card .lead { margin-bottom: 22px; }
.form-card .control input { background: #F6F8FD; border-color: #DCE3F1; }
.form-card .control input:focus { background: #fff; }
.form-card .btn { background: linear-gradient(135deg, #2F66E8, #1E48C4); box-shadow: 0 10px 22px -10px rgba(36, 87, 214, .7); }
.form-card .btn:hover { background: linear-gradient(135deg, #2A5DDA, #1A3FAE); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px dashed #DCE3F1; justify-content: center; }
.trust li { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); background: #F3F6FC; border: 1px solid #E3E9F6; border-radius: 999px; padding: 4px 9px; }
.trust li i { color: #2457D6; font-size: 13px; }
.form-stack .fine { margin: 18px 0 0; justify-content: center; }
.auth-foot { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.auth-foot span::before { content: ""; display: inline-block; width: 1px; height: 10px; background: #C9D2E3; margin-right: 10px; vertical-align: middle; }
:root[data-theme="dark"] .auth-form { background: #0B1129; }
:root[data-theme="dark"] .form-card { background: rgba(17, 25, 56, .9); border-color: #263159; }
:root[data-theme="dark"] .form-card .control input, :root[data-theme="dark"] .trust li { background: #141D42; border-color: #263159; }
:root[data-theme="dark"] .blob { opacity: .22; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-form { background: #0B1129; }
  :root:not([data-theme="light"]) .form-card { background: rgba(17, 25, 56, .9); border-color: #263159; }
  :root:not([data-theme="light"]) .form-card .control input, :root:not([data-theme="light"]) .trust li { background: #141D42; border-color: #263159; }
  :root:not([data-theme="light"]) .blob { opacity: .22; }
}
@media (max-width: 900px) {
  .auth-form { padding: 24px 16px 36px; }
  .form-card { padding: 26px 20px 20px; border-radius: 16px; }
  .form-card::before { left: 20px; right: 20px; }
}

/* headline on one line, larger copy */
.art-copy { max-width: none; }
.art-copy h2 { font-size: clamp(28px, 2.4vw, 46px); line-height: 1.12; white-space: nowrap; letter-spacing: -.03em; margin-bottom: 12px; }
.art-copy p { font-size: clamp(17px, 1.3vw, 22px); max-width: none; color: #DCE4FF; }
@media (max-width: 900px) {
  .art-copy h2 { white-space: normal; font-size: 22px; }
  .art-copy p { display: block; font-size: 15px; margin-top: 6px; }
}

/* single-line lead + trust chips in one row */
.form-stack { max-width: 480px; }
.form-card { padding-left: 30px; padding-right: 30px; }
.form-card::before { left: 30px; right: 30px; }
.lead-1 { white-space: nowrap; font-size: 14px; }
.trust { flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
.trust li { font-size: 11px; padding: 4px 8px; white-space: nowrap; gap: 4px; }
.trust li i { font-size: 12px; }
@media (max-width: 480px) {
  .lead-1 { white-space: normal; }
  .trust { flex-wrap: wrap; justify-content: center; }
}

/* ================= Left panel: photo collage ================= */
.auth-art.has-collage { background: radial-gradient(900px 600px at 85% 10%, #22306F 0%, transparent 60%), radial-gradient(700px 500px at 0% 100%, #1B2A5E 0%, transparent 60%), var(--night); }
.collage {
  position: relative; z-index: 1; flex: 1; min-height: 0; max-height: calc(100vh - 300px); width: 100%; max-width: 760px; margin: 22px auto 26px;
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1.15fr .85fr .6fr;
  grid-template-areas: "site site ribbon" "truck map map" "truck banner banner";
}
.tile { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: #fff; min-height: 0;
  box-shadow: 0 18px 40px -18px rgba(3, 7, 25, .75), 0 0 0 1px rgba(255, 255, 255, .08); }
.tile img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.t-site { grid-area: site; } .t-ribbon { grid-area: ribbon; } .t-truck { grid-area: truck; } .t-map { grid-area: map; } .t-banner { grid-area: banner; }
.t-site img { object-position: 50% 45%; }
.t-ribbon img { object-position: 50% 30%; }
.t-truck img { object-position: 22% 50%; filter: contrast(1.05); }
.t-map img, .t-banner img { object-fit: contain; padding: 6px; background: #fff; }
.t-map img { padding: 10px 14px; }
.tile:hover .t-map img, .t-map:hover img, .t-banner:hover img { transform: scale(1.02); }
@media (prefers-reduced-motion: no-preference) {
  .tile { opacity: 0; transform: translateY(10px) scale(.98); animation: tileIn .6s cubic-bezier(.2, .8, .2, 1) forwards; }
  .t-site { animation-delay: .05s; } .t-ribbon { animation-delay: .15s; } .t-truck { animation-delay: .25s; } .t-map { animation-delay: .35s; } .t-banner { animation-delay: .45s; }
}
@keyframes tileIn { to { opacity: 1; transform: none; } }
@media (max-height: 760px) { .collage { margin: 14px auto 16px; gap: 10px; } }
@media (max-width: 1100px) { .collage { gap: 10px; } .tile { border-radius: 12px; } }
@media (max-width: 900px) { .collage { display: none; } .auth-art.has-collage { background: var(--night); } }

/* ================= Collage v2: modern bento ================= */
.auth-art.has-collage {
  --brand-red: #E3141B;
  background:
    radial-gradient(620px 420px at 92% 6%, rgba(227, 20, 27, .30) 0%, transparent 62%),
    radial-gradient(760px 520px at -6% 104%, rgba(64, 98, 255, .32) 0%, transparent 60%),
    linear-gradient(160deg, #0B1230 0%, #0E1740 55%, #0A1029 100%);
}
.auth-art.has-collage::before { /* faint dot grid for depth */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 72%);
}
.collage { gap: 14px; margin: 26px auto 30px; max-width: 780px; grid-template-rows: 1.2fr .85fr .55fr; isolation: isolate; }
.tile { border-radius: 22px; background: #0F1A44; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .07); }
.t-ribbon { border-radius: 22px 22px 22px 60px; }
.t-truck { border-radius: 60px 22px 22px 22px; }
.tile::before { /* bottom fade so captions read on any photo */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 30, .62));
}
.t-map::before, .t-banner::before { display: none; }
.t-truck img { filter: grayscale(1) contrast(1.12) brightness(.95); }
.t-truck:hover img { filter: grayscale(.2) contrast(1.05); }
.t-map, .t-banner { background: #fff; }
.t-map img { padding: 14px 18px 34px; }

/* animated gradient ring on the hero tile */
.t-site { padding: 2px; background: conic-gradient(from var(--ang, 0deg), var(--brand-red), #FFB020, #5B8CFF, #A855F7, var(--brand-red)); }
.t-site img { border-radius: 20px; }
.t-site::after { box-shadow: none; }
.t-site::before { inset: auto 2px 2px 2px; border-radius: 0 0 20px 20px; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* glass caption chips */
.cap {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
}
.cap i { font-size: 15px; color: #FFD27A; }
.cap-dark { color: #17213A; background: rgba(23, 33, 58, .06); border-color: rgba(23, 33, 58, .14); box-shadow: none; }
.cap-dark i { color: var(--brand-red); }

/* floating badges */
.badge-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; border-radius: 18px; color: #fff; pointer-events: none; }
.bf-years { right: -14px; top: 41%; padding: 10px 16px 10px 14px;
  background: linear-gradient(135deg, #FF3B30, var(--brand-red) 60%, #A80E13); box-shadow: 0 18px 36px -12px rgba(227, 20, 27, .7), 0 0 0 4px rgba(255, 255, 255, .08); }
.bf-years b { font-size: 28px; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.bf-years span { font-size: 11.5px; line-height: 1.2; opacity: .95; }
.bf-people { left: -12px; top: 7%; padding: 8px 14px 8px 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.bf-people i { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: linear-gradient(135deg, #5B8CFF, #7C3AED); }
.bf-people span { font-size: 13px; font-weight: 500; } .bf-people b { margin-left: 4px; color: #FFD27A; }

@media (prefers-reduced-motion: no-preference) {
  .t-site { animation: tileIn .6s cubic-bezier(.2, .8, .2, 1) .05s forwards, spin 8s linear infinite; }
  .t-site img { animation: kenburns 18s ease-in-out infinite alternate; }
  .bf-years { animation: tileIn .6s .7s forwards, floatY 5s ease-in-out 1.3s infinite; opacity: 0; }
  .bf-people { animation: tileIn .6s .85s forwards, floatY 6s ease-in-out 1.5s infinite reverse; opacity: 0; }
}
@keyframes spin { to { --ang: 360deg; } }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.t-site:hover img { transform: none; }

@media (max-width: 1100px) { .bf-years { right: -6px; } .bf-people { left: -6px; } .badge-float { transform: scale(.9); } }
@media (max-height: 760px) { .cap { font-size: 11.5px; padding: 4px 10px 4px 8px; } .bf-years b { font-size: 22px; } }

/* collage must never push the headline below the fold: left panel = exactly one screen, collage takes the leftover space */
@media (min-width: 901px) {
  .auth-art.has-collage { height: 100vh; height: 100dvh; position: sticky; top: 0; padding-top: clamp(18px, 3.2vh, 36px); padding-bottom: clamp(18px, 3.6vh, 44px); }
  .auth-art.has-collage .clock-time { font-size: clamp(36px, min(5.4vw, 8vh), 76px); margin: 4px 0 6px; }
  .collage { flex: 1 1 0; min-height: 0; max-height: none; margin: clamp(10px, 2.4vh, 26px) auto clamp(12px, 2.8vh, 30px); }
  .art-copy { flex-shrink: 0; }
  .art-copy h2 { font-size: clamp(22px, min(2.3vw, 4vh), 34px); }
}
@media (min-width: 901px) and (max-height: 640px) { .collage { grid-template-rows: 1.2fr .9fr; grid-template-areas: "site site ribbon" "truck map map"; } .t-banner { display: none; } }

/* ---- company logo + system name ---- */
.form-card .brand.brand-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 26px; }
.brand-logo img { display: block; width: min(100%, 290px); height: auto; }
.brand-sub { display: block; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #E4E8F1);
  font-family: var(--text); font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6B7591); }
:root[data-theme="dark"] .brand-logo img { background: #fff; border-radius: 12px; padding: 8px 12px; }
@media (max-width: 900px) { .brand-logo img { width: min(100%, 240px); } .brand-sub { font-size: 12px; } }
/* logo + system name centred */
.form-card .brand.brand-logo { align-items: center; text-align: center; margin-left: auto; margin-right: auto; width: 100%; }
.brand-logo img { margin: 0 auto; }
.brand-sub { text-align: center; }
/* powered-by footer inside the sign-in card */
.powered { display: flex; justify-content: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line, #E4E8F1); }
.powered img { display: block; width: min(62%, 210px); height: auto; opacity: .95; transition: opacity .2s, transform .2s; }
.powered:hover img { opacity: 1; transform: translateY(-1px); }
:root[data-theme="dark"] .powered img { background: #fff; border-radius: 12px; padding: 6px 10px; }
@media (max-height: 760px) and (min-width: 901px) { .powered { margin-top: 12px; padding-top: 10px; } .powered img { width: min(50%, 170px); } }

/* ---- header: logo, then system name, then the partition line (reference layout) ---- */
.brand-sub { margin-top: 12px; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid var(--line, #E4E8F1);
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; color: #2A3550; }
:root[data-theme="dark"] .brand-sub { color: #C9D2EA; }

/* ---- card footer: copyright left, "Powered by" logo right ---- */
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line, #E4E8F1); }
.card-copy { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted, #5B6478); }
.card-foot .powered { margin: 0; padding: 0; border: 0; flex-shrink: 0; }
.card-foot .powered img { width: 138px; opacity: 1; }
@media (max-height: 760px) and (min-width: 901px) { .card-foot { margin-top: 12px; padding-top: 10px; } .card-foot .powered img { width: 118px; } }
@media (max-width: 380px) { .card-foot { flex-direction: column; align-items: flex-start; } }
.auth-foot span { margin-left: 0 !important; padding-left: 0 !important; border-left: 0 !important; }
.auth-foot span::before { display: none; }
.card-copy a { color: var(--blue, #2457D6); text-decoration: none; font-weight: 500; }
.card-copy a:hover { text-decoration: underline; }
.card-copy span { margin: 0 7px; color: var(--muted, #8A93A8); }

/* ================= Legal documents modal (sign-in page) ================= */
.legal-dlg { width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 860px); padding: 0; border: 0; border-radius: 20px; background: var(--surface, #fff); color: var(--ink, #17213A);
  box-shadow: 0 40px 90px -30px rgba(5, 9, 30, .6), 0 0 0 1px rgba(23, 33, 58, .06); overflow: hidden; display: none; flex-direction: column; font-family: var(--text, Geist, system-ui, sans-serif); }
.legal-dlg[open] { display: flex; animation: ldIn .22s cubic-bezier(.2, .9, .3, 1.1); }
.legal-dlg::backdrop { background: rgba(10, 16, 40, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes ldIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.ld-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line, #E4E8F1); }
.ld-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #EAF0FD; color: #1E3A8A; font-size: 21px; flex-shrink: 0; }
.ld-ttl { flex: 1; min-width: 0; }
.ld-ttl h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.01em; color: var(--ink, #17213A); }
.ld-ttl p { margin: 2px 0 0; font-size: 13px; color: var(--muted, #6B7591); }
.ld-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: #44506B; font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.ld-x:hover { background: #F1F4F9; color: #17213A; }
.ld-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 8px; font-size: 14.5px; line-height: 1.65; color: #3B4560; scrollbar-width: thin; }
.ld-body:focus { outline: none; }
.ld-body .lg-lead { margin: 0 0 16px; color: var(--ink, #17213A); font-size: 14.5px; }
.ld-body section { margin: 0 0 16px; }
.ld-body h2 { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink, #17213A); letter-spacing: 0; }
.ld-body h2 span { display: inline; }
.ld-body h2 span::after { content: ". "; }
.ld-body p { margin: 0 0 8px; }
.ld-body b { color: var(--ink, #17213A); font-weight: 600; }
.ld-body a { color: var(--blue, #2457D6); }
.ld-body .lg-note { display: flex; gap: 8px; background: #F3F6FD; border-left: 3px solid #2457D6; border-radius: 0 10px 10px 0; padding: 10px 12px; font-size: 13.5px; }
.ld-body .lg-note i { color: #2457D6; margin-top: 3px; }
.ld-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line, #E4E8F1); }
.ld-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted, #6B7591); text-decoration: none; }
.ld-foot a:hover { color: var(--blue, #2457D6); }
.ld-close { border: 0; border-radius: 10px; padding: 10px 26px; font: inherit; font-weight: 600; font-size: 14.5px; color: #fff; background: #1E3A6E; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(30, 58, 110, .8); }
.ld-close:hover { background: #17305C; }
:root[data-theme="dark"] .legal-dlg { background: #111A3A; color: #F4F6FB; box-shadow: 0 40px 90px -30px #000, 0 0 0 1px #2C3557; }
:root[data-theme="dark"] .ld-body { color: #D5DBE7; }
:root[data-theme="dark"] .ld-ic { background: rgba(91, 140, 255, .16); color: #A9C1FF; }
:root[data-theme="dark"] .ld-x { color: #C9D2EA; } :root[data-theme="dark"] .ld-x:hover { background: rgba(255, 255, 255, .06); color: #fff; }
:root[data-theme="dark"] .ld-body .lg-note { background: rgba(91, 140, 255, .1); }
:root[data-theme="dark"] .ld-close { background: #3B5BDB; }
@media (max-width: 600px) { .legal-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; } .ld-head, .ld-body, .ld-foot { padding-left: 16px; padding-right: 16px; } }
@media (prefers-reduced-motion: reduce) { .legal-dlg[open] { animation: none; } }
/* greeting sits close to its lead line */
.form-card h1[data-greet] { margin-bottom: 4px !important; }
.form-card h1[data-greet] + .lead { margin-top: 0 !important; }
/* footer links share the copyright colour */
.card-copy a, .card-copy a:hover { color: inherit; font-weight: inherit; }
.card-copy a:hover { text-decoration: underline; }
/* tweaks: smaller "Powered by" mark, 160+ badge a little lower */
.card-foot .powered img { width: 120px; }
@media (max-height: 760px) and (min-width: 901px) { .card-foot .powered img { width: 104px; } }
.bf-years { top: 52%; }
/* left-panel headline + tagline aligned to the right edge */
.art-copy { align-self: flex-end; text-align: right; margin-left: auto; }
.art-copy p { margin-left: auto; }
@media (max-width: 900px) { .art-copy { align-self: stretch; text-align: left; margin-left: 0; } .art-copy p { margin-left: 0; } }
/* headline sits close to the tagline */
.art-copy h2 { margin-bottom: 4px !important; }

/* ================= Sign-in page scales on large displays (2K / 4K / TV) =================
   The page is laid out in px for laptops; on bigger screens the whole page is zoomed uniformly.
   Viewport-height values are divided by the zoom so the left panel still equals exactly one screen. */
:root { --z: 1; }
@media (min-width: 1800px) and (min-height: 900px) { :root { --z: 1.12; } }
@media (min-width: 2200px) and (min-height: 1150px) { :root { --z: 1.3; } }
@media (min-width: 2800px) and (min-height: 1500px) { :root { --z: 1.6; } }
@media (min-width: 3400px) and (min-height: 1900px) { :root { --z: 1.9; } }
.auth, .legal-dlg { zoom: var(--z); }
.auth { min-height: calc(100vh / var(--z)); }
@media (min-width: 901px) { .auth-art.has-collage { height: calc(100vh / var(--z)); height: calc(100dvh / var(--z)); } }
.legal-dlg { max-height: min(calc(86vh / var(--z)), 860px); }
/* very short laptop windows (e.g. 1366×768 with browser bars): tighten the sign-in card */
@media (min-width: 901px) and (max-height: 700px) {
  .form-card .brand.brand-logo { margin-bottom: 14px; } .brand-logo img { width: min(100%, 230px); }
  .form-card h1[data-greet] { font-size: 26px; } .trust { display: none; }
}

/* ================= Sign-in v3: laptop-first sizing (overrides the earlier scale-up) ================= */
/* Scale up only on genuinely large, tall displays — never on laptops or 1080p screens */
:root { --z: 1 !important; }
@media (min-width: 2400px) and (min-height: 1300px) { :root { --z: 1.15 !important; } }
@media (min-width: 2800px) and (min-height: 1500px) { :root { --z: 1.35 !important; } }
@media (min-width: 3400px) and (min-height: 1900px) { :root { --z: 1.6 !important; } }

/* ---- right: a compact, crisp sign-in card ---- */
.form-stack { max-width: 420px !important; }
.form-card { padding: 26px 28px 20px !important; border-radius: 18px; }
.form-card .brand.brand-logo { margin-bottom: 18px !important; }
.brand-logo img { width: min(100%, 250px) !important; image-rendering: auto; }
.brand-sub { margin-top: 10px; padding-bottom: 12px; font-size: 11.5px; letter-spacing: .15em; }
.form-card h1, .form-card h1[data-greet] { font-size: 25px !important; line-height: 1.2; letter-spacing: -.02em; }
.form-card .lead, .lead-1 { font-size: 13.5px !important; margin-bottom: 18px !important; }
.field { margin-bottom: 14px; }
.field label { font-size: 13px; }
.field-head { margin-bottom: 6px; }
.field-head a, .link { font-size: 12.5px; }
.form-card input:not([type="checkbox"]):not([type="radio"]) { height: 44px !important; font-size: 14.5px !important; border-radius: 10px; }
.form-card button[type="submit"], .form-card .btn-signin { height: 46px !important; font-size: 15px !important; margin-top: 6px; }
.trust { margin-top: 16px !important; padding-top: 14px !important; gap: 6px; }
.trust li { font-size: 11px; padding: 4px 9px; }
.card-foot { margin-top: 14px !important; padding-top: 12px !important; }
.card-copy { font-size: 12px; }
.card-foot .powered img { width: 112px !important; }
.fine { font-size: 11.5px; margin-top: 12px; }

/* ---- left: more air between the collage and the headline ---- */
@media (min-width: 901px) {
  .auth-art.has-collage { padding-top: clamp(18px, 3vh, 34px); padding-bottom: clamp(22px, 4vh, 44px); }
  .auth-art.has-collage .clock-time { font-size: clamp(34px, min(4.6vw, 7vh), 64px); }
  .collage { max-width: 720px; margin: clamp(12px, 2.4vh, 24px) auto clamp(26px, 5vh, 56px) !important; gap: 12px; }
  .art-copy h2 { font-size: clamp(21px, min(1.9vw, 3.4vh), 30px) !important; }
  .art-copy p { font-size: 14px; }
}
/* short laptop windows (1366×768, 1280×720 with browser bars) */
@media (min-width: 901px) and (max-height: 760px) {
  .collage { margin-bottom: 20px !important; }
  .form-card { padding: 20px 24px 16px !important; }
  .brand-logo img { width: min(100%, 215px) !important; }
  .form-card h1, .form-card h1[data-greet] { font-size: 23px !important; }
  .form-card input:not([type="checkbox"]):not([type="radio"]) { height: 42px !important; }
  .form-card button[type="submit"], .form-card .btn-signin { height: 44px !important; }
}
/* crisper text on Retina/high-DPI laptops */
.auth, .auth * { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.form-card h1[data-greet] { margin-bottom: 18px !important; }
/* greeting a little smaller, with more space before the first field */
.form-card h1, .form-card h1[data-greet] { font-size: 22px !important; }
.form-card h1[data-greet] { margin-bottom: 24px !important; }
@media (min-width: 901px) and (max-height: 760px) { .form-card h1[data-greet] { font-size: 21px !important; margin-bottom: 20px !important; } }
/* security chips always fit inside the card (one row, shrink to fit) */
.trust { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 4px; padding-left: 0; padding-right: 0; max-width: 100%; }
.trust li { flex: 0 1 auto; min-width: 0; font-size: 10.5px; padding: 4px 7px; gap: 3px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trust li i { font-size: 11.5px; flex-shrink: 0; }
@media (max-width: 400px) { .trust { flex-wrap: wrap; justify-content: center; } }
/* footer text a touch smaller */
.card-copy { font-size: 11.5px !important; }
/* greeting in brand colour: deep navy → blue gradient text */
.form-card h1[data-greet] { background: linear-gradient(90deg, #1E3A8A 0%, #2457D6 60%, #4F7BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; width: fit-content; }
:root[data-theme="dark"] .form-card h1[data-greet] { background-image: linear-gradient(90deg, #9DB8FF 0%, #C7D6FF 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-card h1[data-greet] { background-image: linear-gradient(90deg, #9DB8FF 0%, #C7D6FF 100%); } }

/* ================= Light login (owner, 25 Nov 2026): airy left panel; dark theme keeps the night look ================= */
:root:not([data-theme="dark"]) .auth-art.has-collage {
  color: #17213A;
  background:
    radial-gradient(640px 440px at 92% 6%, rgba(227, 20, 27, .10) 0%, transparent 62%),
    radial-gradient(760px 520px at -6% 104%, rgba(64, 98, 255, .14) 0%, transparent 60%),
    linear-gradient(160deg, #F7F9FF 0%, #EEF3FF 55%, #F4F6FB 100%) !important;
  border-right: 1px solid #E3E9F6;
}
:root:not([data-theme="dark"]) .auth-art.has-collage::before { background-image: radial-gradient(rgba(36, 87, 214, .14) 1px, transparent 1.2px); opacity: .55; }
:root:not([data-theme="dark"]) .auth-art .clock-day { color: #5B6578; text-shadow: none; }
:root:not([data-theme="dark"]) .auth-art .clock-time { color: #1E3A8A; }
:root:not([data-theme="dark"]) .auth-art .clock-sec { color: #4F7BFF; opacity: .9; }
:root:not([data-theme="dark"]) .auth-art .clock-ampm, :root:not([data-theme="dark"]) .auth-art .clock-date { color: #17213A; text-shadow: none; opacity: .85; }
:root:not([data-theme="dark"]) .auth-art .art-copy h2 { color: #17213A; text-shadow: none; }
:root:not([data-theme="dark"]) .auth-art .art-copy p { color: #475467; text-shadow: none; }
:root:not([data-theme="dark"]) .auth-art .tile { box-shadow: 0 16px 34px -20px rgba(23, 33, 58, .35), 0 0 0 1px rgba(23, 33, 58, .06); }
:root:not([data-theme="dark"]) .auth-art .bf-people { background: rgba(255, 255, 255, .9); border-color: #E3E9F6; color: #17213A; box-shadow: 0 12px 26px -14px rgba(23, 33, 58, .35); }
:root:not([data-theme="dark"]) .auth-art .bf-people b { color: #B45309; }
:root:not([data-theme="dark"]) .auth-art .bf-years { box-shadow: 0 14px 28px -14px rgba(227, 20, 27, .5); }
@media (max-width: 900px) { :root:not([data-theme="dark"]) .auth-art.has-collage { background: linear-gradient(160deg, #F7F9FF, #EEF3FF) !important; border-right: 0; border-bottom: 1px solid #E3E9F6; } }

/* ================= Hero tile slideshow (4 project photos) ================= */
.t-site.slides { position: relative; }
.t-site .slide { position: absolute; inset: 2px; border-radius: 20px; overflow: hidden; opacity: 0; transition: opacity 1s ease; z-index: 0; }
.t-site .slide.on { opacity: 1; z-index: 1; }
.t-site .slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.t-site .slide::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(5, 9, 30, .6)); }
.t-site .slide .cap { z-index: 2; transform: translateY(6px); opacity: 0; transition: opacity .6s ease .35s, transform .6s ease .35s; }
.t-site .slide.on .cap { transform: none; opacity: 1; }
.t-site.slides::before { display: none; }
.slide-dots { position: absolute; right: 12px; bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.slide-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .3s ease, background .3s ease; }
.slide-dots button[aria-selected="true"] { width: 22px; background: #fff; }
.slide-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .t-site .slide.on img { animation: kenburns 14s ease-in-out infinite alternate; } }

/* ================= All 8 photos in one bento grid (no slider) ================= */
.collage { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-template-rows: 1.05fr 1fr .62fr !important; gap: 12px !important;
  grid-template-areas: "site site inst ribbon" "team heavy map map" "truck truck banner banner" !important; }
.t-inst { grid-area: inst; } .t-team { grid-area: team; } .t-heavy { grid-area: heavy; }
.t-ribbon { border-radius: 22px 22px 22px 22px; } .t-truck { border-radius: 22px; }
.t-inst { border-radius: 22px 22px 22px 44px; } .t-heavy { border-radius: 22px 44px 22px 22px; }
.t-inst img { object-position: 30% 50%; } .t-team img { object-position: 50% 40%; } .t-heavy img { object-position: 35% 50%; }
.t-truck img { object-position: 30% 45%; }
.collage .cap { font-size: 11.5px; padding: 4px 10px 4px 8px; left: 9px; bottom: 9px; }
.collage .cap i { font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .t-inst { animation-delay: .1s; } .t-ribbon { animation-delay: .15s; } .t-team { animation-delay: .2s; } .t-heavy { animation-delay: .25s; }
  .t-map { animation-delay: .3s; } .t-truck { animation-delay: .35s; } .t-banner { animation-delay: .4s; }
}
/* short laptop windows: keep all 8, drop the captions on the small tiles */
@media (min-width: 901px) and (max-height: 720px) { .t-inst .cap, .t-team .cap, .t-heavy .cap, .t-ribbon .cap { display: none; } }
@media (min-width: 901px) and (max-height: 640px) { .collage { grid-template-rows: 1fr 1fr !important; grid-template-areas: "site site inst ribbon" "team heavy map map" !important; } .t-truck, .t-banner { display: none; } }

/* right panel: lighter, airier background behind the sign-in card */
:root:not([data-theme="dark"]) .auth-form { background: linear-gradient(160deg, #FBFCFF 0%, #F7F9FE 60%, #FAFBFD 100%) !important; }
:root:not([data-theme="dark"]) .blob.b1 { opacity: .22 !important; }
:root:not([data-theme="dark"]) .blob.b2 { opacity: .16 !important; }

/* wider left panel and photo grid (owner, 25 Nov 2026) */
@media (min-width: 901px) {
  .auth { grid-template-columns: minmax(0, 64fr) minmax(460px, 36fr) !important; }
  .collage { max-width: 960px !important; width: 100%; }
  .auth-art.has-collage { padding-left: clamp(28px, 3vw, 56px); padding-right: clamp(28px, 3vw, 56px); }
}
@media (min-width: 901px) and (max-width: 1199.98px) { .auth { grid-template-columns: minmax(0, 58fr) minmax(420px, 42fr) !important; } }

/* ---------- ProcurePulse: procurement flow panel (replaces photo collage) ---------- */
.auth-art.has-flow { background: radial-gradient(900px 600px at 85% 8%, #1e3a8a 0%, transparent 60%), radial-gradient(700px 520px at 0% 100%, #0f766e 0%, transparent 60%), #0b1430; }
.flow { position: relative; z-index: 2; display: grid; gap: 12px; margin: 28px 0 30px; max-width: 34rem; }
.flow-track { position: absolute; left: 25px; top: 18px; bottom: 64px; width: 2px; background: linear-gradient(#3b82f6, #14b8a6); opacity: .45; border-radius: 2px; }
.flow-pulse { position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #a7f3d0; box-shadow: 0 0 12px #5eead4; animation: flowPulse 6s linear infinite; }
@keyframes flowPulse { from { top: 0 } to { top: 100% } }
.flow-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); color: #e7ecff;
  opacity: 0; transform: translateX(-14px); animation: flowIn .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes flowIn { to { opacity: 1; transform: none } }
.flow-step:hover { background: rgba(255,255,255,.1); }
.fs-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 18px; color: #fff; }
.fs-t { display: flex; flex-direction: column; line-height: 1.25; } .fs-t b { font-weight: 600; font-size: 15px; } .fs-t small { color: #b8c4ea; font-size: 12.5px; }
.tone-violet .fs-ic { background: #7c3aed } .tone-teal .fs-ic { background: #0d9488 } .tone-amber .fs-ic { background: #d97706 } .tone-indigo .fs-ic { background: #4f46e5 }
.tone-blue .fs-ic { background: #2563eb } .tone-rose .fs-ic { background: #e11d48 } .tone-green .fs-ic { background: #16a34a }
.flow-erp { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(167,243,208,.45); color: #ccfbf1; font-size: 13.5px; }
.flow-erp i { font-size: 18px; color: #5eead4; } .flow-erp b { color: #fff; font-weight: 600; }
.brand-logo img { width: min(300px, 80%); height: auto; }
@media (max-width: 900px) { .flow { display: none; } }
@media (prefers-reduced-motion: reduce) { .flow-step { animation: none; opacity: 1; transform: none; } .flow-pulse { animation: none; } }
