/* BCBC Auth Popup Styles (MAIAi branded) */
.bcbc-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
}

.bcbc-auth-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0f172a; /* dark navy to match portal */
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
  border: 1px solid rgba(226, 163, 8, 0.5); /* gold accent */
}

.bcbc-auth-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 18px;
  background: radial-gradient(circle at 0 0, rgba(226, 163, 8, 0.24), transparent 55%);
}

.bcbc-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bcbc-auth-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(226, 163, 8, 0.45);
}

.bcbc-auth-title-group {
  display: flex;
  flex-direction: column;
}

.bcbc-auth-title-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f9fafb;
}

.bcbc-auth-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
}

.bcbc-auth-header h3 {
  margin: 4px 0 0;
  color: #e5e7eb;
  font-size: 1.1rem;
  font-weight: 600;
}

.bcbc-auth-body {
  padding: 0 24px 22px 24px;
}

.bcbc-auth-form .form-group {
  margin-bottom: 20px;
}

.bcbc-auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.bcbc-auth-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.bcbc-auth-form input::placeholder {
  color: #6b7280;
}

.bcbc-auth-form input:focus {
  outline: none;
  border-color: #e2a308;
  box-shadow: 0 0 0 1px rgba(226, 163, 8, 0.6);
  background-color: #020617;
}

.bcbc-auth-form .btn {
  width: 100%;
  padding: 11px 12px;
  background: linear-gradient(135deg, #facc15, #eab308, #c37f06);
  color: #111827;
  border: none;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.45);
}

.bcbc-auth-form .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(234, 179, 8, 0.6);
  opacity: 0.95;
}

.bcbc-auth-form .btn:disabled {
  background: #4b5563;
  box-shadow: none;
  cursor: not-allowed;
}

.bcbc-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bcbc-auth-close:hover {
  color: #e5e7eb;
}

.bcbc-auth-toggle {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(55, 65, 81, 0.8);
}

.bcbc-auth-toggle a {
  color: #e2a308;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.bcbc-auth-toggle a:hover {
  text-decoration: underline;
}

.bcbc-auth-error {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  font-size: 0.82rem;
}

.bcbc-auth-success {
  background: #d1f2eb;
  color: #0f5132;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid #9dd3cc;
}
