/* Shared Header & Footer for all C2BSpan Authentication Pages */
body.has-auth-chrome {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 !important;
  overflow-x: hidden;
}

body.has-auth-chrome .auth-nav-top,
body.has-auth-chrome .auth-nav,
body.has-auth-chrome .auth-footer {
  display: none !important;
}

body.has-auth-chrome .auth-container,
body.has-auth-chrome .auth-wrapper {
  flex: 1 0 auto;
  width: 100%;
  margin: 28px auto !important;
  padding: 0 16px !important;
  box-sizing: border-box;
}

.auth-site-header {
  width: 100%;
  background: var(--surface, #ffffff);
  border-bottom: 1px solid var(--border, var(--line, #e2e8f0));
  position: sticky;
  top: 0;
  z-index: 40;
}

.auth-site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink, var(--text-main, #0f172a));
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.auth-site-brand img {
  width: 64px;
  height: 64px;
  display: block;
}

.auth-site-brand b {
  color: var(--accent, #0B5FA5);
  font-weight: 800;
}

.auth-site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.auth-site-nav a {
  color: var(--muted, var(--text-muted, #475569));
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.auth-site-nav a:hover,
.auth-site-nav a.is-active {
  color: var(--accent, #0B5FA5);
}

.auth-site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.auth-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--border, var(--line, #cbd5e1));
  background: var(--surface, #ffffff);
  color: var(--ink, var(--text-main, #0f172a));
}

.auth-site-btn-primary {
  background: var(--accent, #0B5FA5);
  border-color: var(--accent, #0B5FA5);
  color: #ffffff !important;
}

.auth-site-theme-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border, var(--line, #cbd5e1));
  border-radius: 8px;
  background: var(--surface, #ffffff);
  color: var(--ink, var(--text-main, #0f172a));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-site-footer {
  width: 100%;
  background: var(--surface, #ffffff);
  border-top: 1px solid var(--border, var(--line, #e2e8f0));
  padding: 20px 16px;
  margin-top: auto;
  text-align: center;
}

.auth-site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.auth-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 10px;
  font-size: 13px;
}

.auth-site-footer-links a {
  color: var(--muted, var(--text-muted, #475569));
  text-decoration: none;
  font-weight: 500;
}

.auth-site-footer-links a:hover {
  color: var(--accent, #0B5FA5);
  text-decoration: underline;
}

.auth-site-footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--subtle, var(--text-subtle, #64748b));
  line-height: 1.5;
}

body.dark .auth-site-header,
body.dark .auth-site-footer {
  background: var(--surface, #111827);
  border-color: var(--border, #1f2937);
}

body.dark .auth-site-btn,
body.dark .auth-site-theme-btn {
  background: var(--surface-soft, #1f2937);
  border-color: var(--border, #374151);
  color: var(--ink, #f8fafc);
}

@media (max-width: 760px) {
  .auth-site-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-site-header-inner {
    padding: 10px 14px;
  }
  .auth-site-btn {
    padding: 0 9px;
    font-size: 12px;
  }
  body.has-auth-chrome .auth-container,
  body.has-auth-chrome .auth-wrapper {
    margin: 16px auto !important;
    padding: 0 12px !important;
  }
}
