/* WC Studio — Authelia login portal (light, aligned with apps/web) */
:root {
  --wc-brand: #ff157b;
  --wc-brand-hover: #e0136f;
  --wc-brand-muted: #ff157b14;
  --wc-bg: #f9fafb;
  --wc-paper: #ffffff;
  --wc-text: #111827;
  --wc-text-muted: #6b7280;
  --wc-border: #e5e7eb;
  --wc-input-border: #d1d5db;
}

html {
  color-scheme: light !important;
}

/* Login logo (transparent PNG from apps/web/public/brand/moveup-mark.svg) */
img[src*='logo'] {
  width: 72px !important;
  height: auto !important;
  object-fit: contain !important;
}

body,
#root,
.MuiCssBaseline-root {
  background-color: var(--wc-bg) !important;
  color: var(--wc-text) !important;
}

/* Authelia dark / grey / oled themes (config or localStorage theme.name) */
[data-mui-color-scheme='dark'] body,
[data-mui-color-scheme='dark'] #root,
[data-mui-color-scheme='dark'] .MuiCssBaseline-root {
  background-color: var(--wc-bg) !important;
  color: var(--wc-text) !important;
}

.MuiPaper-root {
  background-color: var(--wc-paper) !important;
  color: var(--wc-text) !important;
  border: 1px solid var(--wc-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
}

.MuiTypography-root {
  color: var(--wc-text) !important;
}

.MuiTypography-colorTextSecondary,
.MuiFormLabel-root,
.MuiInputLabel-root {
  color: var(--wc-text-muted) !important;
}

.MuiOutlinedInput-root {
  background-color: var(--wc-paper) !important;
  color: var(--wc-text) !important;
  border-radius: 8px !important;
}

.MuiOutlinedInput-notchedOutline {
  border-color: var(--wc-input-border) !important;
}

.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: #9ca3af !important;
}

.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--wc-brand) !important;
  border-width: 1px !important;
  box-shadow: 0 0 0 2px var(--wc-brand-muted);
}

.MuiInput-underline:after,
.MuiFilledInput-underline:after {
  border-color: var(--wc-brand) !important;
}

.MuiButton-containedPrimary,
.MuiLoadingButton-root.MuiButton-containedPrimary {
  background-color: var(--wc-brand) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.MuiButton-containedPrimary:hover,
.MuiLoadingButton-root.MuiButton-containedPrimary:hover {
  background-color: var(--wc-brand-hover) !important;
}

.MuiCheckbox-colorPrimary.Mui-checked,
.MuiRadio-colorPrimary.Mui-checked {
  color: var(--wc-brand) !important;
}

.MuiLink-root,
a {
  color: var(--wc-brand) !important;
}

.MuiLink-root:hover,
a:hover {
  color: var(--wc-brand-hover) !important;
}

.MuiIconButton-root {
  color: var(--wc-text-muted) !important;
}

.MuiIconButton-root:hover {
  background-color: #f3f4f6 !important;
}

.MuiTypography-caption,
footer .MuiTypography-root {
  color: var(--wc-text-muted) !important;
}

footer a {
  color: var(--wc-brand) !important;
}

/* Hide Authelia theme picker — branding is fixed to WC Studio light */
.MuiToolbar-root .MuiIconButton-root[aria-label='Theme'],
.MuiToolbar-root .MuiIconButton-root[aria-label='Thème'] {
  display: none !important;
}

/* Hide reset password link (also disabled in configuration.yml) */
a[href*='reset-password'] {
  display: none !important;
}
