/* Calvin Center — Authelia login page branding */

/* ── Background: pasture sky ── */
body {
  background: linear-gradient(180deg,
    #a8c5d8 0%,
    #c8dce8 30%,
    #d8e8c0 65%,
    #a8c890 100%
  ) !important;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

/* ── Card ── */
.MuiPaper-root {
  background: #fdf8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 40px rgba(44, 110, 138, 0.2) !important;
}

/* ── Snackbar/notification popups — keep dark background + white text ── */
.MuiSnackbarContent-root {
  background: #323232 !important;
  color: #fff !important;
  border-radius: 4px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
}
.MuiSnackbarContent-root .MuiTypography-body1,
.MuiSnackbarContent-root .MuiTypography-body2 {
  color: #fff !important;
}

/* ── Inline alerts (success/error/info/warning) inside the card ── */
.MuiAlert-root {
  color: inherit !important;
}
.MuiAlert-standardSuccess { background-color: #edf7ed !important; color: #1e4620 !important; }
.MuiAlert-standardError   { background-color: #fdeded !important; color: #5f2120 !important; }
.MuiAlert-standardWarning { background-color: #fff4e5 !important; color: #663c00 !important; }
.MuiAlert-standardInfo    { background-color: #e5f6fd !important; color: #014361 !important; }
.MuiAlert-standardSuccess .MuiTypography-body1,
.MuiAlert-standardSuccess .MuiTypography-body2 { color: #1e4620 !important; }
.MuiAlert-standardError   .MuiTypography-body1,
.MuiAlert-standardError   .MuiTypography-body2 { color: #5f2120 !important; }
.MuiAlert-standardWarning .MuiTypography-body1,
.MuiAlert-standardWarning .MuiTypography-body2 { color: #663c00 !important; }
.MuiAlert-standardInfo    .MuiTypography-body1,
.MuiAlert-standardInfo    .MuiTypography-body2 { color: #014361 !important; }

/* ── Title / headings ── */
.MuiTypography-h5,
.MuiTypography-h6 {
  font-family: Georgia, 'Times New Roman', serif !important;
  color: #2c6e8a !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

.MuiTypography-subtitle1,
.MuiTypography-subtitle2,
.MuiTypography-body1,
.MuiTypography-body2 {
  color: #4a4a3a !important;
}

/* ── Text fields ── */
.MuiOutlinedInput-root {
  background: #fff !important;
  border-radius: 6px !important;
}

.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #4a90b8 !important;
}

.MuiInputLabel-root.Mui-focused {
  color: #2c6e8a !important;
}

/* ── Primary button (Sign in) ── */
.MuiButton-containedPrimary {
  background-color: #4a90b8 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border-radius: 6px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 2px 8px rgba(74, 144, 184, 0.3) !important;
}

.MuiButton-containedPrimary:hover {
  background-color: #2c6e8a !important;
  box-shadow: 0 4px 12px rgba(44, 110, 138, 0.35) !important;
}

/* ── Secondary / text buttons ── */
.MuiButton-text,
.MuiButton-outlined {
  color: #4a90b8 !important;
  text-transform: none !important;
}

/* ── Links ── */
a { color: #4a90b8 !important; }

/* ── Checkbox accent ── */
.MuiCheckbox-root.Mui-checked { color: #4a90b8 !important; }

/* ── Logo: replace Authelia img with Calvin Center horse ── */
img.tss-pnv3lo-icon {
  content: url('/cc-icon.svg') !important;
  width: 72px !important;
  height: 72px !important;
  filter: brightness(0);
}
