/* Brand presentation only. Sign-in, setup and MFA handlers keep their contracts. */
.auth-page.auth-branded {
  grid-template-columns: minmax(520px, 1.06fr) minmax(460px, .94fr);
  background: var(--bg-subtle);
}
.auth-branded .auth-hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: clamp(32px, 3.6vw, 64px);
  background: var(--petrol-2);
  color: var(--text-primary);
  border-right: 1px solid var(--petrol-6);
}
.auth-branded .auth-hero::after { display: none; }
.auth-branded .auth-logo { color: var(--petrol-12); font-size: 24px; letter-spacing: -.6px; }
.auth-branded .auth-logo .brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent); color: var(--text-on-solid); border: 0;
}
.auth-branded .auth-scene {
  position: relative; z-index: 1; align-self: center;
  display: grid; gap: 16px; width: 100%; max-width: 940px; margin: 12px auto;
}
.auth-branded .auth-copy { max-width: 600px; }
.auth-branded .auth-copy .eyebrow {
  color: var(--accent-text); font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; margin: 0 0 14px;
}
.auth-branded .auth-copy h1 {
  color: var(--petrol-12); font-size: clamp(32px, 2.8vw, 48px);
  line-height: 1.15; letter-spacing: -.04em; font-weight: 600; margin: 0 0 18px;
}
.auth-branded .auth-copy h1 span { color: var(--accent-text); }
.auth-branded .auth-copy > p:not(.eyebrow) {
  max-width: 490px; font-size: 15px; line-height: 1.65; color: var(--text-secondary); margin: 0;
}
.auth-branded .auth-mascot-stage {
  position: relative; display: grid; justify-items: center; align-content: center;
  min-width: 0; isolation: isolate; padding: 8px 0 0;
}
.auth-branded .auth-mascot-halo {
  position: absolute; z-index: -1; width: min(90%, 380px); aspect-ratio: 1;
  top: 48%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--petrol-4); border: 16px solid var(--petrol-3);
}
.auth-branded .auth-alpi.alpi-art {
  width: auto; height: clamp(280px, 36vh, 370px); max-width: 100%;
  object-fit: contain; margin: 0; filter: drop-shadow(0 16px 16px color-mix(in srgb, var(--petrol-12) 12%, transparent));
}
.auth-branded .auth-alpi-note {
  max-width: 330px; margin: 12px 0 0; color: var(--text-secondary);
  font-size: 13px; line-height: 1.6; text-align: center;
}
.auth-branded .auth-capabilities {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px 24px;
  padding-top: 20px; border-top: 1px solid var(--petrol-6); color: var(--accent-text);
  font-size: 13px; font-weight: 500;
}
.auth-branded .auth-capabilities span { display: inline-flex; gap: 8px; align-items: center; }
.auth-branded .auth-capabilities span::before {
  content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent);
}
.auth-branded .auth-form-wrap { background: var(--bg-subtle); padding: 88px 40px 56px; }
.auth-branded .auth-card {
  width: min(460px, 100%); padding: clamp(30px, 3vw, 48px); background: var(--bg-surface);
  border: 1px solid var(--border-hairline); border-radius: 20px; box-shadow: var(--shadow-2);
}
.auth-branded .auth-card > .eyebrow { color: var(--accent-text); font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.auth-branded .auth-card h2 { font-size: clamp(25px, 2vw, 30px); line-height: 1.25; letter-spacing: -.025em; margin-bottom: 12px; }
.auth-branded .auth-card > .subtle { font-size: 14px; line-height: 1.6; margin-bottom: 28px; }
.auth-branded .auth-card .grid { gap: 18px; }
.auth-branded .auth-card label { font-size: 13px; font-weight: 500; }
.auth-branded .auth-card .input, .auth-branded .auth-card .select {
  min-height: 46px; border-radius: 8px; background: var(--bg-surface); padding-inline: 13px;
}
.auth-branded .auth-card .btn[type="submit"] {
  min-height: 48px; border-radius: 8px; margin-top: 4px; font-size: 14px; font-weight: 600;
}
.auth-branded .auth-card [data-legal-links] { margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--border-hairline); font-size: 12px; }
.auth-branded .auth-lang { top: 24px; right: 32px; }
.auth-branded .auth-hero :focus-visible { outline-color: var(--focus-ring); }
@media (min-width: 1600px) {
  .auth-branded .auth-scene { grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: center; }
  .auth-branded .auth-alpi.alpi-art { height: clamp(370px, 42vh, 480px); max-width: none; }
  .auth-branded .auth-copy h1 { font-size: clamp(40px, 2.5vw, 52px); }
}
/* Keep the established small-screen fallback without a separate mobile redesign. */
@media (max-width: 980px) {
  .auth-page.auth-branded { grid-template-columns: minmax(380px, 1fr) minmax(400px, 1fr); }
  .auth-branded .auth-hero { padding: 28px; }
  .auth-branded .auth-form-wrap { padding-inline: 24px; }
}
@media (max-width: 780px) {
  .auth-page.auth-branded { grid-template-columns: 1fr; }
  .auth-branded .auth-hero { display: none; }
  .auth-branded .auth-form-wrap { min-height: 100vh; }
}


/* Corporate identity overlay. Keep deployment brand IDs and application behavior intact. */
.brand-mark,
.auth-logo .brand-mark,
.side-brand .brand-mark,
.auth-branded .auth-logo .brand-mark {
  background: #fff url('/brand-identity/mark.svg') center / contain no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  border: 0;
}
.auth-logo,
.auth-branded .auth-logo {
  width: 220px;
  height: 66px;
  max-width: 100%;
  flex-shrink: 0;
  background: #fff url('/brand-identity/logo.svg') center / contain no-repeat;
  border-radius: 4px;
  font-size: 0 !important;
  gap: 0;
}
.auth-logo .brand-mark { display: none; }

/* Kalex24 visual layer only. All form, session, MFA and submission logic is unchanged. */
.auth-page {
  --accent:#0b1f44; --accent-text:#004bbe; --focus-ring:#004bbe;
  --bg-surface:#fff; --bg-subtle:#f4f7fc; --border-hairline:#dce3ee;
  --text-primary:#0b1f44; --text-secondary:#566378;
  min-height:100vh; background:#f4f7fc;
  grid-template-columns:minmax(500px,1.06fr) minmax(460px,.94fr);
  font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
}
.auth-page .auth-hero {
  display:grid; grid-template-rows:auto 1fr auto; gap:30px;
  padding:42px 48px 32px; border:0; color:#fff;
  background:radial-gradient(ellipse at 100% 90%,#004bbe 0,transparent 65%),#0b1f44;
  overflow:hidden;
}
.auth-page .auth-hero::after {display:none}
.auth-page .auth-logo {
  display:flex; align-items:center; width:176px; height:56px; gap:11px; margin-left:-13px;
  background:url('/brand-identity/logo.svg') left center/contain no-repeat; border-radius:0; font-size:0!important;
  color:transparent;letter-spacing:-1.1px;font-weight:750;
}
.auth-page .auth-logo::before {display:none}
.auth-page .auth-logo::after {display:none}
.auth-page .auth-logo .brand-mark {display:none!important}
.auth-page .auth-scene {display:grid;grid-template-columns:1fr;gap:27px;max-width:540px;width:100%;margin:16px 0;align-self:center}
.auth-page .auth-copy {max-width:540px}
.auth-page .auth-copy .eyebrow {color:#b3fd5e;font-size:11px;letter-spacing:.13em;font-weight:700;margin:0 0 20px;text-transform:uppercase}
.auth-page .auth-copy h1 {color:#fff;font-size:clamp(34px,3.2vw,48px);font-weight:650;letter-spacing:-.045em;line-height:1.13;margin:0 0 20px}
.auth-page .auth-copy h1 span {color:#8efa00}
.auth-page .auth-copy>p:not(.eyebrow) {color:#c1cde2;font-size:15px;line-height:1.7;max-width:430px;margin:0}
.auth-page .auth-mascot-stage {
  display:block;position:relative;min-height:195px;height:clamp(180px,26vh,240px);
  padding:0;isolation:auto;background:url('/assets/kalex-v5-login-scene.svg') left center/contain no-repeat;
}
.auth-page .auth-mascot-halo,.auth-page .auth-alpi,.auth-page .auth-alpi-note {display:none}
.auth-page .auth-capabilities {display:flex;flex-wrap:wrap;gap:22px;padding-top:21px;border-top:1px solid #ffffff26;color:#d2ddf0;font-size:12px}
.auth-page .auth-capabilities span::before {width:5px;height:5px;background:#8efa00;border-radius:1px}
.auth-page .auth-form-wrap {display:flex;align-items:center;justify-content:center;background:#f4f7fc;padding:94px 48px 52px}
.auth-page .auth-card {width:min(420px,100%);padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#0b1f44}
.auth-page .auth-card>.eyebrow {font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#004bbe;margin:0 0 14px}
.auth-page .auth-card h2 {font-size:32px;line-height:1.2;letter-spacing:-.035em;font-weight:650;margin:0 0 13px}
.auth-page .auth-card>.subtle {font-size:14px;line-height:1.65;color:#566378;margin:0 0 34px}
.auth-page .auth-card .grid {gap:20px}
.auth-page .auth-card label {font-size:12px;font-weight:650;color:#253c5c}
.auth-page .auth-card .input,.auth-page .auth-card .select {
  min-height:50px;border:1px solid #c4cedc;border-radius:7px;background:#fff;
  padding:12px 15px;color:#0b1f44;box-shadow:0 1px 2px #0b1f4405;
}
.auth-page .auth-card .input:hover {border-color:#8495b0}
.auth-page .auth-card .input:focus-visible,.auth-page .auth-card .select:focus-visible {outline:3px solid #004bbe38;outline-offset:2px;border-color:#004bbe}
.auth-page .auth-card .btn[type=submit] {
  background:#8efa00;color:#0b1f44;border:1px solid #8efa00;border-radius:7px;
  min-height:51px;font-size:14px;font-weight:750;margin-top:5px;box-shadow:none;
}
.auth-page .auth-card .btn[type=submit]:hover:not(:disabled) {background:#7de000;border-color:#7de000;transform:translateY(-1px)}
.auth-page .auth-card .btn:disabled {opacity:.55;cursor:not-allowed}
.auth-page .auth-card a {color:#004bbe;text-underline-offset:4px}
.auth-page .auth-card [data-legal-links] {border-top:1px solid #dce3ee;margin:6px 0 0;padding-top:23px;font-size:11px}
.auth-page .auth-card [data-legal-links] a {color:#566378}
.auth-page .auth-lang {top:28px;right:34px;z-index:2}
.auth-page .auth-lang button {color:#253c5c}
.auth-page .auth-lang .active {background:#0b1f44;color:#fff}
.auth-page :focus-visible {outline:3px solid #004bbe;outline-offset:4px}
.auth-page .auth-hero :focus-visible {outline-color:#8efa00}
@media(min-width:1600px){.auth-page .auth-hero{padding:54px 8vw 40px}.auth-page .auth-scene{max-width:580px}.auth-page .auth-copy h1{font-size:48px}.auth-page .auth-mascot-stage{height:250px}}
@media(max-width:980px){.auth-page{grid-template-columns:minmax(380px,1fr) minmax(400px,1fr)}.auth-page .auth-hero{padding:34px 30px}.auth-page .auth-form-wrap{padding-inline:30px}}
@media(max-width:780px){.auth-page{grid-template-columns:1fr}.auth-page .auth-hero{display:none}.auth-page .auth-form-wrap{min-height:100vh;padding:95px 28px 48px}}
@media(prefers-reduced-motion:reduce){.auth-page *{transition:none!important;animation:none!important}.auth-page .auth-card .btn[type=submit]:hover{transform:none}}

/* Kalex in-app theme 13.11.2026 (card 150m). Kalex-only file: the Alpiva image never loads this copy.
   Way back: restore the previous brand-auth.css (everything below this line goes).
   Tokens only, so every page, chart and badge that reads the petrol ramp turns Kalex blue. Status colours
   (green / amber / red) are untouched. Contrast on white: #004BBE 7.6:1, #0045AD 8.6:1, #2F6FD8 4.8:1;
   #004BBE on the selected tint #E6EEFB 6.5:1; #D2DDF0 on navy #0B1F44 11.9:1; lime #8EFA00 on navy 12.2:1.
   Lime only on navy (on white it is 1.6:1, never text there). */
:root {
  --petrol-2: #F2F6FD; --petrol-3: #E6EEFB; --petrol-4: #D6E4F8; --petrol-6: #B8CFF0; --petrol-7: #9DBCEB;
  --petrol-8: #2F6FD8; --petrol-9: #004BBE; --petrol-10: #003F9F; --petrol-11: #0045AD; --petrol-12: #0B1F44;
  --bg-zebra: #F7F9FD;
  --hero-bg: #0B1F44; --hero-text: #D2DDF0; --hero-accent: #8EFA00;
  --sidebar-active: var(--petrol-3);
  --kalex-navy: #0B1F44; --kalex-blue: #004BBE; --kalex-lime: #8EFA00;
}
/* Selected navigation row: light blue tint with the blue bar (text #1B2528 on #E6EEFB 13.4:1). */
.side-nav a.active, .side-bottom a.active { background: var(--petrol-3); box-shadow: inset 3px 0 var(--accent); }
.side-nav a.active .nav-icon, .side-bottom a.active .nav-icon { color: var(--accent); }

/* Alpi (Alpiva's mascot) is not part of the Kalex face: the launcher, its welcome bubble and every mascot picture
   go. display:none removes them from the tab order and the click area; the assistant button stands alone. */
.alpi-launcher, .alpi-launcher[aria-expanded] { display: none !important; }
.guide-welcome, .guide-welcome.is-bubble { display: none !important; }
.guide-mascot, .empty-alpi, .alpi-art { display: none !important; }
.auth-page .auth-mascot-halo, .auth-page .auth-alpi, .auth-page .auth-alpi-note { display: none !important; }

/* The assistant (card 150c, ui/assistent-panel.js injects its own <style> after this file: body raises specificity). */
body .ast-fab { background: var(--kalex-navy); color: #fff; border: 1px solid var(--kalex-navy); display: inline-flex; align-items: center; gap: 8px; }
body .ast-fab::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--kalex-lime); }
body .ast-fab:hover { background: var(--kalex-blue); border-color: var(--kalex-blue); }
body .ast-fab:focus-visible, body .ast-panel button:focus-visible, body .ast-panel textarea:focus-visible { outline: 3px solid var(--kalex-blue); outline-offset: 2px; }
body .ast-head { background: var(--kalex-navy); color: #fff; border-bottom-color: var(--kalex-navy); border-radius: 11px 11px 0 0; }
body .ast-head button { color: #fff; }
body .ast-head button:focus-visible { outline-color: var(--kalex-lime); }
body .ast-user { background: var(--petrol-3); color: var(--text-primary); }
body .ast-row .ast-primary, body .ast-tools .ast-send { background: var(--kalex-blue); border-color: var(--kalex-blue); color: #fff; }
body .ast-row .ast-primary:hover, body .ast-tools .ast-send:hover { background: var(--petrol-10); border-color: var(--petrol-10); }
body .ast-foot textarea:focus { border-color: var(--kalex-blue); }
/* The assistant button takes Alpi's place, so it also takes Alpi's lift above a sticky form action bar
   (css/alpi-launcher.css --alpi-bottom); the panel opens above the button. */
body .ast-fab { bottom: var(--alpi-bottom, 20px); }
body .ast-panel { bottom: calc(var(--alpi-bottom, 20px) + 52px); height: min(620px, calc(100vh - var(--alpi-bottom, 20px) - 90px)); }
/* The help panel's head says «Alpi hilft» (ui/guide.js); under Kalex it reads «Hilfe». */
body .guide-panel-head h2 { font-size: 0; }
body .guide-panel-head h2::before { content: "Hilfe"; font-size: var(--text-lg); line-height: var(--lh-lg); }
