@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&family=Poppins:wght@500;600;700&display=swap");

/*
 * SRT Flight Deck — iOS-inspired operational design layer.
 * Glass is reserved for navigation and overlays; dense content stays opaque.
 */
:root {
  --srt-navy: #071c31;
  --srt-navy-2: #0b2b49;
  --srt-cyan: #00a9c6;
  --srt-orange: #f47b36;
  --srt-canvas: #eef3f6;
  --srt-surface: rgba(255, 255, 255, .94);
  --srt-line: rgba(16, 34, 53, .11);
  --srt-shadow: 0 1px 2px rgba(7, 28, 49, .04), 0 12px 34px rgba(7, 28, 49, .09);
  --srt-raised: 0 24px 64px rgba(7, 28, 49, .16);
  --srt-radius: 18px;
  --srt-radius-lg: 24px;
  --srt-blur: 22px;
  --srt-ease: cubic-bezier(.2, .75, .25, 1);
  color-scheme: light;
  --srt-heading-font: "Poppins", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  --srt-body-font: "Mulish", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
}

html { background: var(--srt-canvas); scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 8% -4%, rgba(0,169,198,.12), transparent 30rem),
    radial-gradient(circle at 96% 8%, rgba(244,123,54,.08), transparent 27rem),
    linear-gradient(180deg, #f7fafb 0%, var(--srt-canvas) 68%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a, input, select, textarea { font: inherit; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(0,169,198,.34) !important;
  outline-offset: 3px !important;
}
::selection { background: rgba(0,169,198,.22); color: var(--srt-navy); }
* { scrollbar-width: thin; scrollbar-color: #9badb9 #edf2f5; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #edf2f5; }
*::-webkit-scrollbar-thumb { background: #9badb9; border: 3px solid #edf2f5; border-radius: 999px; }

/* Employee Operations Hub */
.app-shell, .workspace { background: transparent !important; }
.sidebar {
  background: linear-gradient(180deg, rgba(5,24,43,.97), rgba(8,37,62,.93)) !important;
  border-right: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: 14px 0 44px rgba(6,26,47,.13);
  -webkit-backdrop-filter: blur(var(--srt-blur)) saturate(140%);
  backdrop-filter: blur(var(--srt-blur)) saturate(140%);
}
.brand-block { border-color: rgba(255,255,255,.1) !important; }
.brand-block img { filter: drop-shadow(0 7px 18px rgba(0,0,0,.18)); }
.nav-item {
  min-height: 46px;
  border-radius: 14px !important;
  transition: background .18s var(--srt-ease), transform .18s var(--srt-ease), color .18s var(--srt-ease) !important;
}
.nav-item:hover { background: rgba(255,255,255,.09) !important; transform: translateX(2px); }
.nav-item.active, [aria-current="page"].nav-item {
  background: linear-gradient(135deg, rgba(0,169,198,.25), rgba(255,255,255,.1)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 8px 24px rgba(0,0,0,.12);
}
.topbar {
  background: rgba(247,250,251,.8) !important;
  border-bottom: 1px solid rgba(16,34,53,.08) !important;
  box-shadow: 0 8px 28px rgba(7,28,49,.055);
  -webkit-backdrop-filter: blur(var(--srt-blur)) saturate(150%);
  backdrop-filter: blur(var(--srt-blur)) saturate(150%);
}
.global-search, .profile-chip, .icon-button, .topbar-actions button {
  border-color: rgba(16,34,53,.1) !important;
  background: rgba(255,255,255,.74) !important;
  box-shadow: 0 4px 14px rgba(7,28,49,.045);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.main-content { padding-bottom: 48px !important; }
.page-head h1, .section-head h2 { letter-spacing: -.035em; }
.card, .data-card, .metric-card, .stat-card, .table-card, .panel {
  border-color: var(--srt-line) !important;
  border-radius: var(--srt-radius) !important;
  box-shadow: var(--srt-shadow) !important;
  background: var(--srt-surface) !important;
}
.card:hover, .metric-card:hover, .stat-card:hover { border-color: rgba(0,169,198,.22) !important; }
.button, .primary-button, button[type="submit"] {
  min-height: 44px;
  border-radius: 13px !important;
  transition: transform .16s var(--srt-ease), box-shadow .16s var(--srt-ease), filter .16s var(--srt-ease) !important;
}
.button:hover, .primary-button:hover, button[type="submit"]:hover { transform: translateY(-1px); filter: saturate(1.06); }
.button.primary, .primary-button, button[type="submit"] {
  background: linear-gradient(145deg, #00aecb, #078ba4) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0,159,188,.22) !important;
}
input, select, textarea, .input, .select {
  min-height: 44px;
  border-radius: 12px !important;
  border-color: rgba(16,34,53,.14) !important;
  background: rgba(255,255,255,.94) !important;
}
table { border-collapse: separate !important; border-spacing: 0; }
thead th {
  background: #f5f8fa !important;
  color: #53697c !important;
  font-size: 11px !important;
  letter-spacing: .055em !important;
  text-transform: uppercase;
}
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(0,169,198,.045) !important; }
.modal, .dialog, .drawer, .profile-menu, .dropdown-menu {
  background: rgba(255,255,255,.95) !important;
  border: 1px solid rgba(255,255,255,.62) !important;
  border-radius: var(--srt-radius-lg) !important;
  box-shadow: var(--srt-raised) !important;
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}

/* Customer portal */
.portal-shell, .portal-main { background: transparent !important; }
.portal-header {
  background: rgba(7,28,49,.87) !important;
  border-bottom: 1px solid rgba(255,255,255,.11) !important;
  box-shadow: 0 12px 36px rgba(7,28,49,.16);
  -webkit-backdrop-filter: blur(var(--srt-blur)) saturate(145%);
  backdrop-filter: blur(var(--srt-blur)) saturate(145%);
}
.portal-sidebar {
  background: rgba(255,255,255,.76) !important;
  border-right: 1px solid rgba(16,34,53,.08) !important;
  -webkit-backdrop-filter: blur(var(--srt-blur)) saturate(135%);
  backdrop-filter: blur(var(--srt-blur)) saturate(135%);
}
.portal-nav a, .portal-nav button {
  min-height: 48px;
  border-radius: 14px !important;
  transition: background .16s var(--srt-ease), transform .16s var(--srt-ease) !important;
}
.portal-nav a:hover, .portal-nav button:hover { transform: translateX(2px); }
.portal-nav .active, .portal-nav [aria-current="page"] {
  background: linear-gradient(135deg, rgba(0,159,188,.14), rgba(0,159,188,.06)) !important;
  box-shadow: inset 0 0 0 1px rgba(0,159,188,.15);
}
.welcome-hero {
  color: #fff !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(130,220,233,.25), transparent 18rem),
    linear-gradient(135deg, #071c31 0%, #0b3555 62%, #086b7d 140%) !important;
  box-shadow: 0 24px 58px rgba(7,28,49,.2) !important;
}
.summary-card, .portal-card, .shipment-card {
  border: 1px solid var(--srt-line) !important;
  border-radius: var(--srt-radius) !important;
  background: rgba(255,255,255,.95) !important;
  box-shadow: var(--srt-shadow) !important;
}
.summary-card { position: relative; overflow: hidden; }
.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(#00a9c6, #7cdbe8);
}
.filter-pill, .message-button, .account-button { min-height: 44px; border-radius: 999px !important; }
.filter-pill[aria-pressed="true"], .filter-pill.active {
  color: #fff !important;
  background: #087f95 !important;
  box-shadow: 0 8px 18px rgba(0,159,188,.2) !important;
}
.search-field { border-radius: 15px !important; background: rgba(255,255,255,.9) !important; }
.shipment-card { transition: transform .18s var(--srt-ease), box-shadow .18s var(--srt-ease); }
.shipment-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(7,28,49,.12) !important; }
.status-pill, .badge { border-radius: 999px !important; }

/* Authentication */
.auth-layout {
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 12%, rgba(0,169,198,.18), transparent 27rem),
    linear-gradient(145deg, #edf4f7, #f9fbfc);
}
.auth-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(0,175,203,.3), transparent 24rem),
    radial-gradient(circle at 88% 80%, rgba(244,123,54,.15), transparent 20rem),
    linear-gradient(145deg, #05182b, #0b304e) !important;
}
.auth-brand::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: -130px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand img {
  border: 1px solid rgba(255,255,255,.65) !important;
  border-radius: 26px !important;
  box-shadow: 0 24px 58px rgba(0,0,0,.22) !important;
}
.auth-panel { position: relative; }
.auth-card {
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.84) !important;
  box-shadow: 0 30px 80px rgba(7,28,49,.14) !important;
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}
.auth-card h2 { letter-spacing: -.04em; }
.auth-card label { gap: 8px; }
.auth-card input {
  min-height: 50px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.9) !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-card input:focus {
  background: #fff !important;
  border-color: #00a9c6 !important;
  box-shadow: 0 0 0 4px rgba(0,169,198,.11) !important;
}
.auth-card button[type="submit"] { min-height: 50px !important; border-radius: 14px !important; font-weight: 800 !important; }
.auth-error { border-radius: 14px !important; }

@media (max-width: 900px) {
  .topbar { background: rgba(247,250,251,.9) !important; }
  .portal-sidebar { background: rgba(255,255,255,.94) !important; box-shadow: 14px 0 44px rgba(7,28,49,.18); }
  .welcome-hero { border-radius: 22px !important; }
  .auth-layout { grid-template-columns: 1fr !important; }
  .auth-brand { min-height: auto !important; padding: 32px 24px !important; }
  .auth-brand img { width: min(220px, 70%) !important; }
  .auth-panel { padding: 24px 16px 40px !important; }
  .auth-card { border-radius: 22px !important; }
}
@media (max-width: 640px) {
  .main-content, .portal-main { padding-left: 14px !important; padding-right: 14px !important; }
  .card, .data-card, .metric-card, .stat-card, .table-card, .panel,
  .summary-card, .portal-card, .shipment-card { border-radius: 16px !important; }
  .welcome-hero { border-radius: 20px !important; }
  .button, .primary-button, .filter-pill, .message-button, .account-button { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  :root { --srt-line: rgba(16,34,53,.28); }
  .topbar, .portal-sidebar, .auth-card { background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sidebar, .portal-header { background: #071c31 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .topbar, .portal-sidebar, .auth-card, .modal, .dialog, .drawer, .profile-menu, .dropdown-menu { background: #fff !important; }
  .sidebar, .portal-header { background: #071c31 !important; }
}


/* SRT typography: Cascade-inspired pairing adapted to the SRT product system. */
body { font-family: var(--srt-body-font) !important; }
h1, h2, h3, h4, h5, h6, .brand-block strong, .page-title, .card-title {
  font-family: var(--srt-heading-font) !important;
}

/* Employee sign-in — SRT liquid glass */
.employee-auth [hidden] { display: none !important; }
.employee-auth {
  min-height: 100vh;
  overflow-x: hidden;
  background: #071c31;
}
.employee-auth .auth-layout {
  position: relative;
  min-height: 100svh;
  grid-template-columns: minmax(440px, 1.08fr) minmax(480px, .92fr);
  background:
    radial-gradient(circle at 8% 8%, rgba(22, 196, 224, .28), transparent 28rem),
    radial-gradient(circle at 44% 92%, rgba(244, 123, 54, .20), transparent 26rem),
    radial-gradient(circle at 94% 10%, rgba(132, 96, 246, .18), transparent 25rem),
    linear-gradient(118deg, #06182b 0%, #0b2e4e 48%, #dfeaf0 48.1%, #f3f7f9 100%);
}
.employee-auth .auth-layout::before,
.employee-auth .auth-layout::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}
.employee-auth .auth-layout::before {
  width: clamp(260px, 33vw, 520px);
  aspect-ratio: 1;
  left: -10vw;
  bottom: -23vw;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 54px rgba(255,255,255,.035), 0 0 0 108px rgba(0,169,198,.035);
}
.employee-auth .auth-layout::after {
  width: 270px;
  height: 270px;
  right: -90px;
  top: -85px;
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 28px 60px rgba(52,77,101,.13);
}
.employee-auth .auth-brand {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(30px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent !important;
}
.employee-auth .auth-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(180px, 26vw, 390px);
  aspect-ratio: 1;
  right: -9%;
  top: 19%;
  border-radius: 36% 64% 48% 52% / 55% 42% 58% 45%;
  background: linear-gradient(145deg, rgba(0,183,215,.25), rgba(141,95,245,.08) 50%, rgba(244,123,54,.18));
  filter: blur(2px);
  transform: rotate(-12deg);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.24), 0 34px 80px rgba(0,0,0,.12);
}
.employee-auth .auth-brand::after { display: none; }
.auth-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.auth-logo-lockup,
.auth-panel-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.auth-logo-frame {
  width: 66px;
  height: 58px;
  flex: 0 0 auto;
  padding: 7px 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(0,0,0,.16);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.employee-auth .auth-logo-frame img {
  width: 78px !important;
  max-width: none;
  height: 54px;
  padding: 0 !important;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.auth-brand-name strong,
.auth-brand-name small,
.auth-panel-brand strong,
.auth-panel-brand small { display: block; }
.auth-brand-name strong {
  font-family: var(--srt-heading-font);
  color: #fff;
  font-size: 15px;
  letter-spacing: -.01em;
}
.auth-brand-name small { margin-top: 2px; color: #9fc1d4; font-size: 11px; font-weight: 700; }
.auth-access-pill {
  margin: 0 !important;
  padding: 9px 13px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dcecf5 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  font-size: 11px !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.auth-access-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7da3a;
  box-shadow: 0 0 0 4px rgba(199,218,58,.14);
}
.auth-brand-copy { max-width: 680px; padding: clamp(54px, 9vh, 100px) 0; }
.auth-kicker {
  margin: 0 0 17px !important;
  color: #89e5f1 !important;
  letter-spacing: .14em !important;
}
.employee-auth .auth-brand h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: var(--srt-heading-font);
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.058em;
}
.employee-auth .auth-brand-copy > p {
  max-width: 610px;
  margin: 24px 0 0;
  color: #c3d8e5;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.7;
}
.auth-capabilities {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.auth-capabilities span {
  margin: 0 !important;
  padding: 10px 13px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: #eff8fb !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 11px !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.auth-capabilities i { width: 8px; height: 8px; border-radius: 50%; }
.capability-cyan { background: #31d2e8; box-shadow: 0 0 12px rgba(49,210,232,.6); }
.capability-orange { background: #f69255; box-shadow: 0 0 12px rgba(246,146,85,.5); }
.capability-lime { background: #c7da3a; box-shadow: 0 0 12px rgba(199,218,58,.5); }
.auth-brand-foot {
  margin: 0 !important;
  color: #789db3 !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .04em;
}
.employee-auth .auth-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  place-items: center;
}
.employee-auth .auth-panel::before {
  content: "";
  position: absolute;
  width: min(72%, 420px);
  aspect-ratio: 1;
  left: 7%;
  top: 12%;
  border-radius: 45% 55% 62% 38%;
  background: linear-gradient(145deg, rgba(0,169,198,.16), rgba(128,91,238,.11) 54%, rgba(244,123,54,.1));
  filter: blur(16px);
  transform: rotate(18deg);
}
.auth-panel-brand { display: none; }
.employee-auth .auth-card {
  position: relative;
  width: min(500px, 100%);
  padding: clamp(30px, 4.5vw, 48px);
  border: 1px solid rgba(255,255,255,.78) !important;
  border-radius: 32px !important;
  background: linear-gradient(150deg, rgba(255,255,255,.79), rgba(248,252,254,.60)) !important;
  box-shadow: 0 34px 90px rgba(7,28,49,.18), inset 0 1px 0 rgba(255,255,255,.9) !important;
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
}
.employee-auth .auth-card::before {
  content: "";
  position: absolute;
  inset: 12px 12px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
}
.employee-auth .auth-card .eyebrow { margin: 0 0 10px; color: #087e9c; }
.employee-auth .auth-card h2 {
  margin: 0;
  color: #071c31;
  font-family: var(--srt-heading-font);
  font-size: clamp(29px, 3vw, 37px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.employee-auth .auth-card-heading > p {
  margin: 12px 0 0;
  color: #617486;
  font-size: 13.5px;
  line-height: 1.65;
}
.employee-auth #loginForm { margin-top: 27px; }
.employee-auth .auth-card label {
  gap: 8px;
  margin: 17px 0;
  color: #29445b;
  font-size: 12px;
  font-weight: 800;
}
.employee-auth .auth-card input {
  min-height: 54px !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(111,140,162,.34) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.66) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}
.employee-auth .auth-card input::placeholder { color: #9aabb8; }
.employee-auth .auth-card input:focus {
  background: rgba(255,255,255,.94) !important;
  border-color: #08a6c3 !important;
  box-shadow: 0 0 0 4px rgba(8,166,195,.12), 0 10px 26px rgba(7,91,119,.07) !important;
}
.employee-auth .link-button { color: #087e9c; text-decoration: none; }
.employee-auth .link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.employee-auth .auth-submit {
  min-height: 54px !important;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px !important;
  background: linear-gradient(120deg, #075f91, #00a9c6) !important;
  box-shadow: 0 15px 30px rgba(0,137,168,.23) !important;
}
.employee-auth .auth-submit span:last-child { font-size: 20px; font-weight: 500; }
.employee-auth .security-note {
  margin-top: 22px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #728493 !important;
}
.employee-auth .security-note span { color: #23a97a; font-size: 8px; }
.employee-auth dialog {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  background: rgba(250,253,255,.92);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}
.employee-auth dialog::backdrop {
  background: rgba(4,20,38,.58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.employee-auth dialog .eyebrow { margin: 0; color: #087e9c; }

@media (max-width: 980px) {
  .employee-auth .auth-layout {
    grid-template-columns: minmax(340px, .84fr) minmax(430px, 1.16fr);
    background: linear-gradient(118deg, #06182b 0%, #0b2e4e 42%, #e5eef2 42.1%, #f5f8fa 100%);
  }
  .employee-auth .auth-brand { padding: 34px; }
  .employee-auth .auth-brand h1 { font-size: 52px; }
  .auth-access-pill { display: none !important; }
}
@media (max-width: 760px) {
  .employee-auth {
    background:
      radial-gradient(circle at 12% 2%, rgba(0,169,198,.24), transparent 22rem),
      linear-gradient(180deg, #06182b 0, #0b304e 34%, #e5eef2 34.1%, #f6f9fa 100%);
  }
  .employee-auth .auth-layout {
    display: block;
    min-height: 100svh;
    background: transparent;
  }
  .employee-auth .auth-layout::after { width: 180px; height: 180px; right: -80px; top: -70px; opacity: .7; }
  .employee-auth .auth-brand { min-height: auto !important; padding: 23px 20px 90px !important; }
  .auth-brand-top { display: none; }
  .auth-brand-copy { padding: 20px 0 0; }
  .auth-kicker { margin-bottom: 12px !important; }
  .employee-auth .auth-brand h1 { max-width: 470px; font-size: clamp(38px, 11vw, 52px); }
  .employee-auth .auth-brand-copy > p { margin-top: 16px; font-size: 14px; line-height: 1.55; }
  .auth-capabilities, .auth-brand-foot { display: none; }
  .employee-auth .auth-panel { min-height: auto; margin-top: -62px; padding: 0 13px 34px !important; place-items: start center; }
  .employee-auth .auth-panel::before { display: none; }
  .auth-panel-brand {
    width: min(500px, calc(100% - 10px));
    margin: 0 auto 12px;
    padding: 0 8px;
    display: flex;
  }
  .auth-panel-brand .auth-logo-frame { width: 54px; height: 48px; border-radius: 15px; }
  .auth-panel-brand strong { color: #17344b; font-family: var(--srt-heading-font); font-size: 13px; }
  .auth-panel-brand small { margin-top: 1px; color: #6b7e8e; font-size: 10px; font-weight: 700; }
  .employee-auth .auth-card { padding: 27px 20px; border-radius: 26px !important; }
  .employee-auth .auth-card h2 { font-size: 29px; }
}
@media (max-width: 420px) {
  .employee-auth .auth-brand { padding-inline: 16px !important; }
  .employee-auth .auth-brand-copy > p { max-width: 350px; }
  .employee-auth .auth-panel { padding-inline: 9px !important; }
  .employee-auth .auth-card { padding-inline: 17px; }
}


/* Unified authentication recovery, feedback and preview affordances */
.auth-customer [hidden], .employee-auth [hidden] { display: none !important; }
.auth-recovery-row {
  min-height: 32px;
  margin: 4px 0 20px;
  padding: 0 2px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(94,120,141,.14);
}
.auth-recovery-row > span {
  color: #7b8d9c;
  font-size: 11px;
  font-weight: 650;
}
.auth-recovery-row .link-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.auth-recovery-row .link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.employee-auth .auth-submit, .auth-customer .auth-submit { margin-top: 0 !important; }

.employee-auth .auth-error,
.auth-customer .auth-error {
  position: relative;
  margin: 0 0 16px;
  padding: 13px 14px 13px 42px;
  border: 1px solid rgba(190,70,88,.22);
  border-radius: 15px !important;
  background: linear-gradient(135deg,rgba(253,235,239,.86),rgba(255,247,249,.72));
  color: #842a3a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.employee-auth .auth-error::before,
.auth-customer .auth-error::before {
  content: "!";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b6374a;
  color: #fff;
  font: 800 11px/1 var(--srt-body-font);
}
.employee-auth .auth-error.success,
.auth-customer .auth-error.success {
  border-color: rgba(29,151,107,.22);
  background: linear-gradient(135deg,rgba(231,247,240,.9),rgba(246,252,249,.75));
  color: #126b4f;
}
.employee-auth .auth-error.success::before,
.auth-customer .auth-error.success::before { content: "✓"; background: #18845f; }

.field-error {
  margin: -8px 0 14px;
  color: #a92f43;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.45;
}
.field-error::before { content: "●"; margin-right: 7px; color: #c33d53; font-size: 8px; }
input[aria-invalid="true"] { border-color: #c74a5e !important; box-shadow: 0 0 0 4px rgba(199,74,94,.10) !important; }

.recovery-dialog {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.74) !important;
  border-radius: 28px !important;
  background: linear-gradient(150deg,rgba(255,255,255,.94),rgba(242,249,252,.88)) !important;
  box-shadow: 0 34px 100px rgba(4,20,38,.30),inset 0 1px 0 #fff !important;
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
}
.recovery-dialog .dialog-close,
.auth-customer dialog .dialog-close {
  float: none;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16,34,53,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: #536b7d;
  font: 500 24px/1 var(--srt-body-font);
  cursor: pointer;
}
.recovery-dialog .dialog-close:hover,
.auth-customer dialog .dialog-close:hover { background: #fff; color: #071c31; }
.recovery-dialog .dialog-actions,
.auth-customer dialog .dialog-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.recovery-dialog .dialog-actions > *,
.auth-customer dialog .dialog-actions > * { min-height: 50px; }

.auth-preview-link {
  margin-top: 15px;
  padding: 13px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(94,120,141,.12);
  color: #087e9c;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}
.auth-preview-link:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .auth-recovery-row { margin-bottom: 17px; }
  .recovery-dialog .dialog-actions,
  .auth-customer dialog .dialog-actions { grid-template-columns: 1fr; }
}
