/* Manager login gate — hide page until authenticated */
html.docs-auth-locked body > *:not(#docs-auth-gate):not(script):not(style):not(link) {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.docs-auth-locked #docs-auth-gate {
  visibility: visible !important;
  pointer-events: auto !important;
}

#docs-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(254, 44, 85, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 20%, rgba(37, 244, 238, 0.12), transparent 50%),
    #07080c;
}

.docs-auth-card {
  width: min(100%, 400px);
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.docs-auth-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #25f4ee;
  margin-bottom: 8px;
}

.docs-auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #f4f4f5;
  font-weight: 700;
}

.docs-auth-sub {
  margin: 0 0 20px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #9a9ba3;
}

#docs-auth-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c4c5cc;
  margin: 0 0 6px;
}

#docs-auth-form input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0e14;
  color: #f4f4f5;
  font: inherit;
  font-size: 0.95rem;
}

#docs-auth-form input:focus {
  outline: none;
  border-color: #fe2c55;
}

.docs-auth-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(254, 44, 85, 0.12);
  border: 1px solid rgba(254, 44, 85, 0.35);
  color: #ff8fa3;
  font-size: 0.85rem;
}

#docs-auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #fe2c55, #e01b44);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#docs-auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

#docs-auth-bar {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: rgba(18, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  color: #9a9ba3;
}

#docs-auth-bar.docs-auth-bar--inline {
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  backdrop-filter: none;
}

#docs-auth-bar .docs-auth-who {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#docs-auth-logout {
  appearance: none;
  border: 0;
  background: rgba(254, 44, 85, 0.2);
  color: #fe2c55;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

#docs-auth-logout:hover {
  background: #fe2c55;
  color: #fff;
}
