/* Fleet Dynamics 2026 — Phase 124.27 secure Auth gate. */
body:not(.fleet-authenticated) > .app-shell,
body:not(.fleet-authenticated) > #windowLayer,
body:not(.fleet-authenticated) > #mobileBackdrop,
body:not(.fleet-authenticated) > #toast {
  visibility: hidden !important;
  pointer-events: none !important;
}

.fleet-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 22%, rgba(75, 150, 220, .22), transparent 36%),
    linear-gradient(180deg, #193d66 0%, #0b223c 48%, #061321 100%);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.fleet-auth-gate[hidden] { display: none !important; }

.fleet-auth-card {
  width: min(430px, calc(100vw - 40px));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248,252,255,.98), rgba(224,235,246,.98));
  box-shadow: 0 24px 80px rgba(0,0,0,.48), inset 0 1px 0 #fff;
  overflow: hidden;
  color: #18324c;
}

.fleet-auth-header {
  padding: 22px 24px 18px;
  color: #fff;
  background: linear-gradient(180deg, #3a78ad, #225b8b);
  border-bottom: 1px solid #17466e;
}

.fleet-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 650;
}

.fleet-auth-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  font-size: 18px;
}

.fleet-auth-header p {
  margin: 8px 0 0 46px;
  font-size: 12px;
  opacity: .84;
}

.fleet-auth-form { padding: 24px; }
.fleet-auth-field { display: grid; gap: 7px; margin-bottom: 15px; }
.fleet-auth-field label { font-size: 12px; font-weight: 700; color: #34536f; }
.fleet-auth-field input {
  width: 100%;
  box-sizing: border-box;
  height: 39px;
  border: 1px solid #9fb4c7;
  border-radius: 5px;
  padding: 0 11px;
  background: #fff;
  color: #10283e;
  font: inherit;
  outline: none;
}
.fleet-auth-field input:focus {
  border-color: #3a80b9;
  box-shadow: 0 0 0 2px rgba(58,128,185,.17);
}
.fleet-auth-submit {
  width: 100%;
  height: 40px;
  border: 1px solid #1d5584;
  border-radius: 5px;
  background: linear-gradient(180deg, #438ac3, #28689d);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.fleet-auth-submit:disabled { opacity: .65; cursor: wait; }
.fleet-auth-message {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #567087;
}
.fleet-auth-message[data-kind="error"] { color: #a12626; }
.fleet-auth-note {
  padding: 0 24px 22px;
  font-size: 11px;
  line-height: 1.5;
  color: #6a7e90;
}

.fleet-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 11px;
}
.fleet-auth-user[hidden] { display: none !important; }
.fleet-auth-user strong {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.fleet-auth-role {
  padding: 1px 5px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  font-size: 9px;
  text-transform: uppercase;
  opacity: .78;
}
.fleet-auth-signout {
  border: 0;
  padding: 2px 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  opacity: .78;
}
