:root {
  color-scheme: dark;
}

html,
body {
  background: #050505 !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(232, 144, 144, 0.16), transparent 28rem),
    radial-gradient(circle at 72% 80%, rgba(255, 202, 202, 0.07), transparent 24rem),
    linear-gradient(180deg, rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.96));
}

body::after {
  content: none !important;
}

#root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.MuiPaper-root,
.MuiCard-root {
  background: rgba(10, 10, 10, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(18px);
}

.MuiButton-containedPrimary,
button[type="submit"] {
  background: rgba(232, 144, 144, 0.22) !important;
  border: 1px solid rgba(232, 144, 144, 0.38) !important;
  color: #ffcaca !important;
  box-shadow: none !important;
}

.MuiButton-containedPrimary:hover,
button[type="submit"]:hover {
  background: rgba(232, 144, 144, 0.32) !important;
}

.MuiOutlinedInput-root,
.MuiInputBase-root {
  background: rgba(255, 255, 255, 0.04) !important;
}

.MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

a,
.MuiLink-root,
.MuiButton-textPrimary {
  color: #ffcaca !important;
}

img[alt="Authelia"] {
  max-height: 132px !important;
  width: auto !important;
  opacity: 0.94;
  margin-bottom: 0.5rem !important;
}

input[name="token"] ~ fieldset,
input[name="totp"] ~ fieldset,
input[autocomplete="one-time-code"] ~ fieldset {
  border-color: rgba(255, 202, 202, 0.28) !important;
}

form:has(input[name="token"])::after,
form:has(input[name="totp"])::after,
form:has(input[autocomplete="one-time-code"])::after {
  content: "Use the 6-digit code from your authenticator app. Email verification codes are 8 characters.";
  display: block;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}
