/**
 * Simulation Hub — cyan / emerald neon on slate-950 (unified + WMS v2 login).
 * Loaded only by login shells; does not affect Office/Landing.
 */
.sim-hub-unified,
html.sim-hub-wms-v2 {
  --sim-cyan: #22d3ee;
  --sim-emerald: #34d399;
  --sim-slate: #020617;
  --sim-glass: rgba(15, 23, 42, 0.72);
  --sim-glass-border: rgba(34, 211, 238, 0.35);
}

.sim-hub-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 60%, rgba(52, 211, 153, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(34, 211, 238, 0.08), transparent 45%),
    #020617;
}

.sim-hub-unified .unified-login-wrap,
html.sim-hub-wms-v2 .w2-shell {
  position: relative;
  z-index: 2;
}
.sim-hub-unified .unified-login-wrap {
  flex-direction: column;
}
html.sim-hub-wms-v2 .w2-form-wrap {
  flex-direction: column;
}

/* Floating fan — disabled in favour of inline ring above the card */
.sim-hub-fan-float {
  display: none !important;
}

/* Inline fan above login card */
.sim-hub-fan-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  min-height: 72px;
  pointer-events: none;
}
.sim-hub-fan--inline {
  width: 72px;
  height: 72px;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sim-hub-active .sim-hub-fan--inline {
  opacity: 1;
  transform: scale(1.04);
}
.sim-hub-active .sim-hub-fan-inline .sim-hub-fan-blade {
  animation: simHubFanSpin 0.72s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}
.sim-hub-fan {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.35)) drop-shadow(0 0 14px rgba(52, 211, 153, 0.25));
}
.sim-hub-fan-blade {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(34, 211, 238, 0.75) 300deg 330deg,
    rgba(52, 211, 153, 0.85) 330deg 360deg
  );
  animation: none;
}
.sim-hub-active .sim-hub-fan-float .sim-hub-fan-blade {
  animation: simHubFanSpin 0.82s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}
@keyframes simHubFanSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Card glass + gradient border */
.sim-hub-unified .unified-login-card.sim-hub-card,
html.sim-hub-wms-v2 .w2-card.sim-hub-card {
  position: relative;
  color: #e2e8f0;
  color-scheme: dark;
  background: var(--sim-glass);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12) inset,
    0 24px 60px -20px rgba(0, 0, 0, 0.65);
}
.sim-hub-unified .unified-login-card.sim-hub-card::before,
html.sim-hub-wms-v2 .w2-card.sim-hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(52, 211, 153, 0.45), rgba(34, 211, 238, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sim-hub-unified .unified-login-card h1,
html.sim-hub-wms-v2 .w2-card h1 {
  background: linear-gradient(90deg, #a5f3fc, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sim-hub-unified .unified-login-card .subtitle,
.sim-hub-unified .unified-login-card > label,
html.sim-hub-wms-v2 .w2-sub,
html.sim-hub-wms-v2 .w2-field label {
  color: #94a3b8;
}
.sim-hub-unified .unified-login-card > label,
html.sim-hub-wms-v2 .w2-field label {
  font-weight: 600;
}

.sim-hub-unified .unified-login-card input,
.sim-hub-unified .unified-login-card select,
html.sim-hub-wms-v2 .w2-field input {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(34, 211, 238, 0.25);
  color: #f1f5f9;
}
.sim-hub-unified .unified-login-card input::placeholder {
  color: #64748b;
}
.sim-hub-unified .unified-login-page .unified-login-card .login-toggle {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(52, 211, 153, 0.2);
}
.sim-hub-unified .unified-login-page .unified-login-card .login-toggle label:has(input:checked) {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.45);
  color: #ecfeff;
}

.sim-hub-unified .unified-login-card button.primary {
  background: linear-gradient(90deg, #22d3ee, #34d399);
  color: #042f2e;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.25), 0 4px 18px rgba(52, 211, 153, 0.2);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.12s ease;
}
.sim-hub-unified .unified-login-card button.primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.45),
    0 10px 36px rgba(34, 211, 238, 0.35),
    0 6px 22px rgba(52, 211, 153, 0.28);
}
html.sim-hub-wms-v2 .w2-primary {
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.12s ease;
}
html.sim-hub-wms-v2 .w2-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.45),
    0 10px 36px rgba(34, 211, 238, 0.32),
    0 6px 22px rgba(52, 211, 153, 0.25);
}

.sim-hub-active .unified-login-wrap,
.sim-hub-active .w2-form-wrap {
  filter: blur(1.5px);
  transition: filter 0.25s ease;
}

/* Post-success boot overlay */
.sim-hub-boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.2s ease;
}
.sim-hub-boot.hidden {
  display: none;
}
.sim-hub-boot__panel {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 28rem;
}
.sim-hub-boot__line {
  margin: 1.25rem 0 0.5rem;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a5f3fc;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
  min-height: 1.4em;
}
.sim-hub-boot__numeric {
  margin: 0.35rem 0 0;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6ee7b7;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.55);
}
.sim-hub-boot .sim-hub-fan {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}
.sim-hub-boot .sim-hub-fan-blade {
  animation: simHubFanSpin 0.75s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

html.sim-hub-wms-v2 body.w2-login {
  background: #020617;
  color: #e2e8f0;
}
html.sim-hub-wms-v2 .w2-brand {
  background: linear-gradient(165deg, #020617 0%, #0f172a 50%, #022c22 100%);
  border-right-color: rgba(34, 211, 238, 0.15);
}
html.sim-hub-wms-v2 .w2-brand__title {
  background: linear-gradient(90deg, #a5f3fc, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.sim-hub-wms-v2 .w2-brand__badge {
  color: #5eead4;
}
html.sim-hub-wms-v2 .w2-brand__sub,
html.sim-hub-wms-v2 .w2-brand__mode-v {
  color: #94a3b8;
}
html.sim-hub-wms-v2 .w2-form-wrap {
  background: transparent;
}
html.sim-hub-wms-v2 .w2-toggle {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(34, 211, 238, 0.2);
}
html.sim-hub-wms-v2 .w2-toggle label:has(input:checked) {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.4);
  color: #ecfdf5;
}
html.sim-hub-wms-v2 .w2-primary {
  background: linear-gradient(90deg, #22d3ee, #34d399);
  color: #042f2e;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.22);
}
html.sim-hub-wms-v2 .w2-actions a,
html.sim-hub-wms-v2 .w2-actions button.link {
  color: #5eead4;
}
html.sim-hub-wms-v2 #w2-forgot-box {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(52, 211, 153, 0.15);
  color: #cbd5e1;
}
html.sim-hub-wms-v2 #w2-denied {
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.sim-hub-lang {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 30;
  font-size: 12px;
}
.sim-hub-lang select {
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
}

.sim-hub-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sim-hub-unified #forgot-password-box {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(52, 211, 153, 0.15);
  color: #cbd5e1;
}
.sim-hub-unified #forgot-password-box label {
  color: #cbd5e1;
}
.sim-hub-unified #login-error {
  color: #fca5a5;
}
.sim-hub-unified .login-actions a,
.sim-hub-unified .login-actions button.link {
  color: #5eead4;
}
.sim-hub-unified #denied-banner {
  color: #fdba74 !important;
}
