/* Styles for the auth.js overlay (system picker, fatal-error card).
   Loaded by index.html alongside style.css. Kept intentionally
   minimal — the rest of the page's chrome handles brand. */

#oc-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  /* Pin the overlay to a light scheme — without this the dashboards'
     dark theme bleeds into native form controls and renders the
     input text white-on-white. */
  color-scheme: light;
}

.oc-auth-picker {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  max-width: 32rem;
  width: calc(100% - 2rem);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
  color: #1f2937;
}

.oc-auth-picker h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.oc-auth-picker p {
  margin: 0 0 1rem;
  color: #4b5563;
  line-height: 1.5;
}

.oc-auth-picker-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.oc-auth-picker-buttons button {
  font: inherit;
  background: #2563eb;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  text-align: left;
}

.oc-auth-picker-buttons button:hover {
  background: #1d4ed8;
}

.oc-auth-fatal h2 {
  color: #b91c1c;
}

/* Tenant input form */
.oc-auth-tenant-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oc-auth-tenant-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #374151;
}

.oc-auth-tenant-label input[type="text"] {
  font: inherit;
  /* `font: inherit` doesn't include color — set it explicitly so the
     input text is readable on the white card regardless of the
     page's color scheme. */
  color: #1f2937;
  background: white;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.oc-auth-tenant-label input[type="text"]:focus {
  outline: 2px solid #2563eb;
  outline-offset: -1px;
}

.oc-auth-tenant-label input[type="text"]:focus {
  outline: 2px solid #2563eb;
  outline-offset: -1px;
}

.oc-auth-tenant-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.oc-auth-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.875rem;
}
