/* TourCare: one logo per slot, keep aspect ratio, size by placement */

/* Login / wide headers: wordmark — do NOT force display (would unhide dark twin) */
img[src*="brand-assets/logo.png"],
img[src*="brand-assets/logo.svg"]:not([src*="logo_thumbnail"]):not([src*="logo_dark"]) {
  height: 72px !important;
  width: auto !important;
  max-height: 72px !important;
  max-width: min(280px, 82vw) !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* Dark twin stays hidden on the light login page */
img[src*="brand-assets/logo_dark"] {
  display: none !important;
  height: 72px !important;
  width: auto !important;
  max-height: 72px !important;
  max-width: min(280px, 82vw) !important;
  object-fit: contain !important;
  background: transparent !important;
}

html.dark img[src*="brand-assets/logo.png"],
html.dark img[src*="brand-assets/logo.svg"]:not([src*="logo_thumbnail"]):not([src*="logo_dark"]),
.dark img[src*="brand-assets/logo.png"],
.dark img[src*="brand-assets/logo.svg"]:not([src*="logo_thumbnail"]):not([src*="logo_dark"]) {
  display: none !important;
}

html.dark img[src*="brand-assets/logo_dark"],
.dark img[src*="brand-assets/logo_dark"] {
  display: inline-block !important;
}

/* Sidebar / favicon pin only */
img[src*="logo_thumbnail"] {
  height: 40px !important;
  width: 40px !important;
  max-height: 40px !important;
  max-width: 40px !important;
  object-fit: contain !important;
  background: transparent !important;
}

aside img[src*="logo_thumbnail"],
.sidebar img[src*="logo_thumbnail"],
nav img[src*="logo_thumbnail"] {
  height: 32px !important;
  width: 32px !important;
  max-height: 32px !important;
  max-width: 32px !important;
}

aside img[src*="brand-assets"],
.sidebar img[src*="brand-assets"],
nav img[src*="brand-assets"] {
  object-fit: contain !important;
  background: transparent !important;
}

/* Staff sign-in only. The class is added on /login and removed after leaving it. */
html.tc-auth,
html.tc-auth body,
html.tc-auth #app,
html.tc-auth #app > div,
html.tc-auth main {
  background: #f7f5f0 !important;
  color: #1c2430 !important;
  font-family: Inter, "Segoe UI", sans-serif !important;
}
html.tc-auth[data-theme="dark"],
html.tc-auth[data-theme="dark"] body,
html.tc-auth[data-theme="dark"] #app,
html.tc-auth[data-theme="dark"] #app > div,
html.tc-auth[data-theme="dark"] main {
  background: #0c0c0c !important;
  color: #f4f4f5 !important;
}
html.tc-auth main > section:first-child {
  background: transparent !important;
  box-shadow: none !important;
}
html.tc-auth main > section:last-child {
  background: #ffffff !important;
  color: #1c2430 !important;
  border: 1px solid rgba(20, 32, 51, 0.08) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 50px rgba(20, 36, 70, 0.08) !important;
}
html.tc-auth[data-theme="dark"] main > section:last-child {
  background: #161617 !important;
  color: #f4f4f5 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28) !important;
}
html.tc-auth h2 {
  color: #142033 !important;
  letter-spacing: -0.04em !important;
}
html.tc-auth[data-theme="dark"] h2 { color: #f4f4f5 !important; }
html.tc-auth[data-theme="dark"] label,
html.tc-auth[data-theme="dark"] main > section:last-child {
  color: #e6e8ee !important;
}
html.tc-auth[data-theme="dark"] input {
  color: #f4f4f5 !important;
  background: #222328 !important;
}
html.tc-auth[data-theme="dark"] main a.inline-flex,
html.tc-auth[data-theme="dark"] main a.inline-flex span,
html.tc-auth button[type="submit"] {
  color: #151515 !important;
}
html.tc-auth[data-theme="light"] button[type="submit"] {
  color: #ffffff !important;
}
html.tc-auth #tc-auth-home {
  display: block;
  margin: 10px auto 0;
  width: fit-content;
  color: #1d4e89 !important;
  font-size: 13px;
  text-decoration: none;
}
html.tc-auth[data-theme="dark"] #tc-auth-home { color: #9abbff !important; }
html.tc-auth main a.inline-flex {
  border-radius: 999px !important;
  min-height: 48px !important;
  background: #f4f6f8 !important;
  color: #1c2430 !important;
}
html.tc-auth input {
  border-radius: 12px !important;
  min-height: 46px !important;
}
html.tc-auth button[type="submit"] {
  background: #12356b !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  min-height: 48px !important;
}
html.tc-auth[data-theme="dark"] button[type="submit"] {
  background: #f4f4f5 !important;
  color: #151515 !important;
}
html.tc-auth[data-theme="dark"] img[src*="logo.png"],
html.tc-auth[data-theme="dark"] img[src*="logo.svg"]:not([src*="logo_thumbnail"]):not([src*="logo_dark"]) {
  display: none !important;
}
html.tc-auth[data-theme="dark"] img[src*="logo_dark"] {
  display: block !important;
}
html.tc-auth .tc-auth-theme {
  position: fixed;
  z-index: 80;
  top: 18px;
  right: 18px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(20, 32, 51, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #142033;
  font: 600 12px/1 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}
html.tc-auth[data-theme="dark"] .tc-auth-theme {
  background: rgba(20, 20, 22, 0.86);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.14);
}

html.tc-auth,
html.tc-auth body,
html.tc-auth button,
html.tc-auth input,
html.tc-auth label,
html.tc-auth a {
  font-family: Inter, "Segoe UI", sans-serif !important;
}
html.tc-auth h2 {
  font-size: 30px !important;
  font-weight: 600 !important;
  letter-spacing: -0.045em !important;
}
html.tc-auth label {
  color: #1c2838 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
html.tc-auth[data-theme="dark"] label {
  color: #e6e8ee !important;
}
html.tc-auth input {
  background: #ffffff !important;
  color: #142033 !important;
  border: 1px solid #d5dbe3 !important;
  font-size: 16px !important;
}
html.tc-auth input::placeholder {
  color: #7b8796 !important;
}
html.tc-auth[data-theme="dark"] input {
  background: #222328 !important;
  color: #f4f4f5 !important;
  border-color: #3a3c44 !important;
}
html.tc-auth main a.inline-flex {
  color: #142033 !important;
  background: #f4f6f8 !important;
  border: 1px solid #d7dee8 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
html.tc-auth main a.inline-flex span {
  color: #142033 !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
html.tc-auth[data-theme="dark"] main a.inline-flex,
html.tc-auth[data-theme="dark"] main a.inline-flex span {
  color: #f4f4f5 !important;
  background: #222328 !important;
  border-color: #3a3c44 !important;
}
html.tc-auth span.bg-white {
  background: #f7f5f0 !important;
  color: #5c6b7c !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
}
html.tc-auth[data-theme="dark"] span.bg-white {
  background: #161617 !important;
  color: #c8cdd6 !important;
}

