:root {
  color-scheme: dark;
  --me-amber: #ffb726;
  --me-amber-bright: #fff3b0;
  --me-orange: #f57c00;
  --me-cyan: #67e8f9;
  --me-blue: #38bdf8;
  --me-panel: rgba(7, 15, 26, 0.82);
}

html,
body,
#root {
  min-height: 100%;
}

html {
  background: #05070d !important;
}

body {
  margin: 0;
  color: #f8fafc !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.18) 0%, rgba(5, 7, 13, 0.66) 62%, #05070d 100%),
    linear-gradient(90deg, rgba(5, 7, 13, 0.76) 0%, rgba(5, 7, 13, 0.28) 48%, rgba(5, 7, 13, 0.78) 100%),
    url("/custom/citadel-exterior.jpg") center center / cover no-repeat fixed !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.20), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 224, 130, 0.045) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(180deg, rgba(103, 232, 249, 0.035) 0 1px, transparent 1px 18px);
}

body::after {
  content: none;
}

#root {
  position: relative;
  z-index: 1;
}

#root,
#root > div,
main,
[class*="MuiCssBaseline-root"] {
  background: transparent !important;
}

[class*="MuiContainer-root"],
[class*="MuiBox-root"] {
  background-color: transparent !important;
}

[class*="MuiPaper-root"] {
  border: 1px solid rgba(255, 183, 38, 0.84) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(145deg, rgba(7, 15, 26, 0.91), rgba(17, 24, 39, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 224, 130, 0.08) 0 1px, transparent 1px 18px) !important;
  box-shadow:
    0 0 0 1px rgba(255, 236, 179, 0.16) inset,
    0 0 24px rgba(255, 171, 0, 0.28),
    0 22px 60px rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: blur(8px) saturate(1.25);
}

h1, h2, h3,
[class*="MuiTypography-h4"],
[class*="MuiTypography-h5"],
[class*="MuiTypography-h6"] {
  color: #fff8e1 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.78), 0 0 22px rgba(255, 111, 0, 0.44);
}

p,
label,
[class*="MuiTypography-body"],
[class*="MuiFormLabel-root"],
[class*="MuiFormControlLabel-label"] {
  color: rgba(255, 236, 179, 0.92) !important;
}

[class*="MuiAvatar-root"] {
  border: 2px solid rgba(255, 183, 38, 0.9) !important;
  background: rgba(8, 18, 32, 0.82) !important;
  color: #fff8e1 !important;
  box-shadow: 0 0 18px rgba(255, 171, 0, 0.34), inset 0 0 0 1px rgba(255, 236, 179, 0.16) !important;
}

[class*="MuiOutlinedInput-root"] {
  border-radius: 6px !important;
  background: rgba(2, 6, 23, 0.78) !important;
  color: #f8fafc !important;
}

[class*="MuiOutlinedInput-root"] fieldset {
  border-color: rgba(103, 232, 249, 0.58) !important;
}

[class*="MuiOutlinedInput-root"]:hover fieldset,
[class*="MuiOutlinedInput-root"].Mui-focused fieldset {
  border-color: var(--me-amber) !important;
  box-shadow: 0 0 14px rgba(255, 183, 38, 0.24);
}

input,
button {
  font-family: inherit !important;
}

[class*="MuiButton-contained"],
button[type="submit"] {
  border: 1px solid rgba(255, 183, 38, 0.92) !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, rgba(8, 18, 32, 0.96), rgba(180, 83, 9, 0.92)) !important;
  color: #fff8e1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 18px rgba(255, 171, 0, 0.34), inset 0 0 0 1px rgba(255, 236, 179, 0.12) !important;
}

[class*="MuiButton-contained"]:hover,
button[type="submit"]:hover {
  border-color: var(--me-amber-bright) !important;
  background: linear-gradient(135deg, rgba(14, 26, 43, 0.98), rgba(245, 124, 0, 0.94)) !important;
  color: #ffffff !important;
}

[class*="MuiCheckbox-root"],
[class*="MuiIconButton-root"],
a {
  color: var(--me-cyan) !important;
}

a:hover {
  color: var(--me-amber-bright) !important;
}

footer,
[class*="MuiTypography-caption"] {
  color: rgba(255, 236, 179, 0.72) !important;
}

@media (max-width: 640px) {
  body::before {
    background-position: center top;
  }

  [class*="MuiPaper-root"] {
    margin-inline: 12px !important;
  }
}
