/* JKE Motors brand — sidebar + driver pages */
.brand-logo-wrap {
  display: block;
  margin-bottom: 0.45rem;
  padding: 0.75rem 0.65rem;
  background: #fff;
  border-radius: 12px;
  line-height: 0;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 128px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.brand-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}

.brand--compact .brand-logo-wrap {
  padding: 0.5rem 0.55rem;
}

.brand--compact .brand-logo {
  max-height: 100px;
}

/* Driver register / home */
.drivers-portal .brand-logo-wrap {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.drivers-portal .brand-logo {
  max-width: min(280px, 92vw);
  max-height: 140px;
}

/* Login — logo only, no desk title clutter */
.login-box--brand {
  padding: 1.75rem 1.5rem 1.5rem;
}

.login-logo-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.25rem;
  line-height: 0;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.1);
}

.login-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 120px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.login-box--brand input:first-of-type {
  margin-top: 1.25rem;
}

.login-box--brand .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.login-hint {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5f6368;
  text-align: center;
}

.login-hint--ok {
  color: #137333;
  font-weight: 600;
}

.login-footer-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.login-footer-link a {
  color: #1967d2;
  font-weight: 600;
  text-decoration: none;
}

.login-footer-link a:hover {
  text-decoration: underline;
}

/* Staff desk — nav loading overlay (matches driver portal spinner) */
.desk-nav-loading {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 242, 245, 0.82);
  backdrop-filter: blur(4px);
}

.desk-nav-loading[hidden] {
  display: none !important;
}

.desk-nav-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e3a5f;
}

.desk-nav-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e2e8f0;
  border-top-color: #1967d2;
  border-radius: 50%;
  animation: desk-nav-spin 0.7s linear infinite;
}

body.desk-nav-busy {
  cursor: progress;
}

body.desk-nav-busy main.content {
  pointer-events: none;
}

html.desk-booting body {
  overflow: hidden;
}

@keyframes desk-nav-spin {
  to {
    transform: rotate(360deg);
  }
}
