/*
  Cor product family — theme toggle control (exact CorAuth sun/moon icon button).
  Canonical: C:\ITStaff\_Projects\_branding\theme-toggle.css
  Pair with theme-toggle.js. Storage: localStorage cor-theme = light|dark.
*/

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;   /* 36px — matches CorAuth h-9 w-9 */
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid var(--ca-border, #d0d7e2);
  background: var(--ca-panel, #ffffff);
  color: var(--ca-header, #0284c7);
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background: var(--ca-hover, #f1f5f9);
  color: var(--ca-header, #0284c7);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ca-ring, rgba(14, 165, 233, 0.35));
  outline-offset: 2px;
}

.theme-toggle .theme-icon {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Login card corner placement (optional helper) */
.login-theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}
