:root {
  --auth-ink: #1a1714;
  --auth-ink-2: #2e2a26;
  --auth-paper: #f5f0e8;
  --auth-paper-2: #ede7d8;
  --auth-paper-3: #e2dace;
  --auth-gold: #c8a96e;
  --auth-gold-dim: #8a7049;
  --auth-rust: #a05a3a;
  --auth-sage: #5a7a5a;
  --auth-mist: #6a7a8a;
  --auth-line: rgba(26, 23, 20, 0.14);
  --auth-shadow: rgba(0, 0, 0, 0.34);
  --auth-serif: "Libre Baskerville", "Baskerville", "Georgia", "Songti SC", serif;
  --auth-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

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

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 169, 110, 0.16), transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(90, 122, 90, 0.16), transparent 26%),
    linear-gradient(135deg, #15120f 0%, var(--auth-ink) 48%, #252119 100%) !important;
  color: var(--auth-ink) !important;
  font-family: var(--auth-sans) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: clamp(18px, 4vh, 44px) clamp(18px, 4vw, 56px);
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(200, 169, 110, 0.08), transparent 32%, transparent 68%, rgba(160, 90, 58, 0.08)),
    rgba(245, 240, 232, 0.03);
  box-shadow: 0 28px 90px var(--auth-shadow);
}

body::after {
  content: "";
  position: fixed;
  left: clamp(30px, 6vw, 86px);
  bottom: clamp(28px, 7vh, 88px);
  width: min(24vw, 310px);
  height: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(200, 169, 110, 0.7), transparent);
}

.auth-clouds,
.auth-illus-wrap {
  display: none !important;
}

#root {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: transparent !important;
}

#root::before,
#root::after {
  display: none !important;
}

#root > div.hidden {
  display: none !important;
}

#root > div:not(.hidden) {
  position: fixed;
  inset: 0;
  display: grid !important;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1fr);
  align-items: stretch !important;
  width: min(1120px, calc(100vw - 88px));
  min-height: min(690px, calc(100vh - 88px));
  height: min(690px, calc(100vh - 88px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 16px;
  background: var(--auth-paper);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.38);
}

#root > div:not(.hidden)::before {
  content: "GULUU\A\A Enter Your Memory\A\A PRIVATE MEMORY GATEWAY";
  white-space: pre-line;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
  min-height: 100%;
  padding: clamp(54px, 7vh, 76px) clamp(42px, 5vw, 70px);
  color: var(--auth-paper);
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.96), rgba(46, 42, 38, 0.94)),
    var(--auth-ink);
  font-family: var(--auth-serif);
  font-size: clamp(30px, 3.35vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
  pointer-events: none;
}

#root > div:not(.hidden)::after {
  content: "A quiet threshold for your personal archive.";
  position: absolute;
  left: clamp(42px, 5vw, 70px);
  bottom: clamp(44px, 7vh, 76px);
  z-index: 1;
  color: var(--auth-gold);
  font-family: var(--auth-sans);
  max-width: min(28vw, 340px);
  font-family: var(--auth-serif);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  pointer-events: none;
}

:where(.MuiContainer-root, .MuiBox-root) {
  max-width: none !important;
}

#root header {
  display: none !important;
}

#root .MuiContainer-root:has(#form-login) {
  grid-column: 2 !important;
  justify-self: center !important;
  align-self: center !important;
  width: min(420px, calc(100% - 80px)) !important;
  margin: 0 !important;
  padding: clamp(26px, 4vw, 42px) !important;
  box-sizing: border-box !important;
  color: var(--auth-ink) !important;
  background: rgba(255, 252, 246, 0.72) !important;
  border: 1px solid rgba(26, 23, 20, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 54px rgba(46, 42, 38, 0.12) !important;
  backdrop-filter: blur(10px);
}

#root .MuiContainer-root:has(#form-login)::before {
  content: "登录";
  display: block;
  margin: 0 0 8px;
  color: var(--auth-ink);
  font-family: var(--auth-serif);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

#root .MuiContainer-root:has(#form-login)::after {
  content: "Memory Bank authentication";
  display: block;
  margin-top: 20px;
  color: var(--auth-mist);
  font-family: var(--auth-sans);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

:where(.MuiTypography-h1, .MuiTypography-h2, .MuiTypography-h3, .MuiTypography-h4, .MuiTypography-h5, .MuiTypography-h6) {
  display: none !important;
}

:where(.MuiAvatar-root) {
  display: none !important;
}

#UserSvg,
#root a[href*="authelia.com"] {
  display: none !important;
}

#root :where(svg:not(button svg):not(label svg), img[alt*="logo" i], [class*="logo" i], [class*="avatar" i]) {
  display: none !important;
}

:where(.MuiFormControl-root:has([role="button"][aria-haspopup="listbox"]), .MuiBox-root:has([role="button"][aria-haspopup="listbox"]), [class*="language" i], [aria-label*="language" i]) {
  display: none !important;
}

:where(.loading, .loader, .loading-indicator, .authelia-loader, .v-progress-circular, [class*="loading" i], [class*="Loading"], [class*="loader" i], [class*="Loader"], [role="progressbar"], svg.animate-spin, svg[class*="spin" i]) {
  display: none !important;
  visibility: hidden !important;
}

form {
  width: 100% !important;
  margin: 26px 0 0 !important;
}

form::before {
  content: "继续访问 guluu7x.com";
  display: block;
  margin: -14px 0 24px;
  color: var(--auth-mist);
  font-family: var(--auth-sans);
  font-size: 13px;
  line-height: 1.45;
}

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

:where(.MuiFormControl-root) {
  margin-bottom: 16px !important;
}

:where(.MuiFormLabel-root) {
  color: rgba(26, 23, 20, 0.76) !important;
  font-family: var(--auth-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  transform-origin: top left !important;
}

:where(.MuiFormLabel-root.Mui-focused) {
  color: var(--auth-rust) !important;
}

:where(.MuiTypography-root, .MuiFormLabel-root, .MuiInputBase-root, .MuiInputBase-input, .MuiCheckbox-root, .MuiSvgIcon-root) {
  color: var(--auth-ink) !important;
  font-family: var(--auth-sans) !important;
}

:where(.MuiOutlinedInput-root, .MuiInput-root, .MuiInputBase-root) {
  min-height: 52px;
  background: rgba(237, 231, 216, 0.72) !important;
  border-radius: 8px !important;
}

:where(.MuiInputBase-input) {
  color: var(--auth-ink) !important;
  font-size: 14px !important;
}

:where(.MuiInputBase-input::placeholder) {
  color: rgba(106, 122, 138, 0.85) !important;
  opacity: 1 !important;
}

:where(.MuiOutlinedInput-notchedOutline) {
  border-color: rgba(26, 23, 20, 0.12) !important;
  border-width: 1px !important;
}

:where(.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline, .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline) {
  border-color: rgba(160, 90, 58, 0.54) !important;
}

:where(.MuiOutlinedInput-root.Mui-focused, .MuiInputBase-root.Mui-focused) {
  background: rgba(245, 240, 232, 0.92) !important;
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18) !important;
}

:where(.MuiCheckbox-root) {
  color: var(--auth-gold-dim) !important;
}

:where(.MuiButton-contained, button[type="submit"]) {
  width: 100% !important;
  min-height: 52px !important;
  margin: 22px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--auth-ink) !important;
  color: var(--auth-paper) !important;
  border: 1px solid rgba(200, 169, 110, 0.34) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-family: var(--auth-serif) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

#sign-in-button {
  font-size: 0 !important;
}

#sign-in-button::after {
  content: "进入记忆库";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: inherit;
  font-family: var(--auth-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

:where(.MuiButton-contained:hover, button[type="submit"]:hover) {
  background: var(--auth-ink-2) !important;
  box-shadow: 0 14px 30px rgba(26, 23, 20, 0.22) !important;
}

:where(.MuiButton-contained .MuiButton-label, button[type="submit"] *) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  text-align: center !important;
}

:where(.MuiButton-text, a) {
  color: var(--auth-rust) !important;
}

:where(.MuiAlert-root) {
  background: rgba(160, 90, 58, 0.1) !important;
  color: #6d331f !important;
  border: 1px solid rgba(160, 90, 58, 0.24) !important;
  border-radius: 10px !important;
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  body::before {
    inset: 14px;
    border-radius: 18px;
  }

  body::after {
    display: none;
  }

  #root > div:not(.hidden) {
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    width: min(100%, calc(100vw - 28px));
    min-height: calc(100dvh - 28px);
    height: auto;
    margin: 14px auto;
    padding: 28px 18px;
    overflow: visible;
    border-radius: 16px;
  }

  #root > div:not(.hidden)::before {
    content: "GULUU\A\A Enter Your Memory";
    display: block;
    min-height: auto;
    padding: 0;
    margin: 0 auto 18px;
    width: min(420px, 100%);
    color: var(--auth-ink);
    background: transparent;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  #root > div:not(.hidden)::after {
    position: static;
    align-self: center;
    width: min(420px, 100%);
    max-width: 420px;
    margin: 0 auto 22px;
    color: var(--auth-gold-dim);
    font-size: 15px;
  }

  #root .MuiContainer-root:has(#form-login) {
    width: min(300px, calc(100vw - 104px)) !important;
    max-width: min(300px, calc(100vw - 104px)) !important;
    margin: 0 auto !important;
    padding: 28px 22px !important;
    transform: translateX(-12px);
  }

  #root .MuiContainer-root:has(#form-login)::before {
    font-size: 32px;
  }

  #sign-in-button::after {
    content: "进入";
  }
}

@media (max-width: 420px) {
  #root > div:not(.hidden) {
    width: min(100%, calc(100vw - 20px));
    min-height: calc(100dvh - 20px);
    margin: 10px auto;
    padding: 24px 14px;
  }

  #root > div:not(.hidden)::before {
    font-size: clamp(29px, 8.5vw, 34px);
    margin-bottom: 16px;
  }

  #root > div:not(.hidden)::after {
    margin-bottom: 20px;
    font-size: 15px;
  }

  #root .MuiContainer-root:has(#form-login) {
    width: min(300px, calc(100vw - 104px)) !important;
    max-width: min(300px, calc(100vw - 104px)) !important;
    padding: 24px 18px !important;
  }
}
