.auth-modal {
  display: none;
}
.auth-modal.open {
  display: flex;
}
.auth-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}
.auth-tab {
  flex: 1;
  border: none;
  border-radius: 0.55rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.auth-tab:hover {
  color: #e2e8f0;
}
.auth-tab.active {
  color: #f8fafc;
  background: rgba(68, 124, 252, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.auth-panel.hidden,
#auth-modal-body.hidden,
#auth-signup-success.hidden {
  display: none;
}
.auth-oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid rgba(88, 128, 252, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.65rem;
  padding: 0.6rem 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-oauth:hover {
  background: rgba(68, 124, 252, 0.18);
  border-color: rgba(24, 212, 252, 0.45);
}
.btn-oauth:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.oauth-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
.oauth-icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.auth-divider {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.65;
  margin-bottom: 0.75rem;
}
.auth-error-msg:not(.hidden) {
  display: block;
}

/* Light theme (app dashboard) */
.auth-modal--light .auth-tabs {
  background: rgba(15, 23, 42, 0.06);
}
.auth-modal--light .auth-tab {
  color: #64748b;
}
.auth-modal--light .auth-tab:hover {
  color: #334155;
}
.auth-modal--light .auth-tab.active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.auth-modal--light .btn-oauth {
  border-color: rgba(68, 124, 252, 0.25);
  background: #fff;
  color: #0f172a;
}
.auth-modal--light .btn-oauth:hover {
  background: #f8fbff;
  border-color: rgba(68, 124, 252, 0.45);
}
.auth-signup-success {
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  padding: 1rem;
  text-align: center;
}
.auth-signup-success p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}
.auth-signup-success .auth-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.auth-modal--light .auth-signup-success {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(220, 252, 231, 0.85);
  color: #14532d;
}
