/* Auth overlay - login gate for protected pages */
#auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3272 60%, #2a4db5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#auth-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.auth-box {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.auth-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0d1b3e;
  margin-bottom: 12px;
}
.auth-box p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
#auth-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
#auth-denied {
  display: none;
  color: #c53030;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  background: #fff5f5;
  border-radius: 10px;
  margin-bottom: 16px;
}
#google-signin-btn {
  margin: 0 auto;
}
.auth-box .signout-hint {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #718096;
}
.auth-protected-content.hidden,
#auth-protected-content.hidden {
  display: none !important;
}

/* Site header with logo + logout (used on all pages) */
.site-header,
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e2e5ea;
  padding: 20px 48px;
}
.site-header img {
  height: 52px;
  width: auto;
}
.site-header a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logout-btn {
  background: #0d1b3e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.site-logout-btn:hover {
  background: #1a3272;
}
.site-footer {
  background: #0d1b3e;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px 48px;
  font-size: 0.82rem;
}
.site-footer strong { color: rgba(255,255,255,0.8); }
@media (max-width: 768px) {
  .site-header, header.site-header { padding: 16px 24px; }
  .site-header img { height: 44px; }
}
