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

body[data-theme] {
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(17, 17, 15, .98) 0%, rgba(17, 17, 15, .94) 42%, rgba(23, 24, 20, .86) 100%),
    radial-gradient(circle at 18% 24%, rgba(66, 199, 143, .16), transparent 34%),
    radial-gradient(circle at 82% 74%, rgba(214, 169, 79, .14), transparent 32%),
    #11110f !important;
  color: #f2f0e9 !important;
}

body[data-theme]::before {
  content: "";
  position: fixed;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(242, 240, 233, .08);
  border-radius: 18px;
  z-index: 0;
}

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

.dedet-login-brand {
  position: fixed;
  z-index: 1;
  left: clamp(28px, 7vw, 96px);
  top: 50%;
  width: min(420px, 34vw);
  transform: translateY(-50%);
  color: #f2f0e9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dedet-login-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 28px;
  padding: 0 10px;
  border: 1px solid rgba(66, 199, 143, .35);
  border-radius: 999px;
  background: rgba(66, 199, 143, .1);
  color: #dff8eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dedet-login-title {
  margin: 0;
  color: #f7f4ea;
  font-size: 64px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: .92;
  white-space: nowrap;
}

.dedet-login-subtitle {
  max-width: 36rem;
  margin: 24px 0 0;
  color: #b7b2a5;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.dedet-login-points {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.dedet-login-point {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8d4c6;
  font-size: 14px;
  font-weight: 650;
}

.dedet-login-point::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #42c78f;
  box-shadow: 0 0 0 5px rgba(66, 199, 143, .13);
}

@media (min-width: 980px) {
  #root {
    width: calc(100vw - min(44vw, 560px));
    margin-left: min(44vw, 560px);
  }
}

#root [class*="MuiContainer-root"] {
  position: relative;
}

#root [class*="MuiPaper-root"]:not([class*="MuiAppBar-root"]),
#root form {
  border-radius: 14px !important;
}

#root [class*="MuiPaper-root"]:not([class*="MuiAppBar-root"]) {
  border: 1px solid rgba(242, 240, 233, .11) !important;
  background: rgba(25, 26, 23, .88) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34) !important;
  backdrop-filter: blur(18px);
}

#root [class*="MuiAppBar-root"] {
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#root [class*="MuiTypography-h"] {
  color: #f2f0e9 !important;
  letter-spacing: 0 !important;
}

#root [class*="MuiTypography-body"],
#root [class*="MuiFormControlLabel-label"] {
  color: #b7b2a5 !important;
}

#root [class*="MuiInputBase-root"],
#root [class*="MuiOutlinedInput-root"] {
  border-radius: 9px !important;
  background: rgba(17, 18, 15, .82) !important;
}

#root [class*="MuiOutlinedInput-notchedOutline"] {
  border-color: rgba(242, 240, 233, .17) !important;
}

#root [class*="MuiInputBase-root"]:hover [class*="MuiOutlinedInput-notchedOutline"],
#root [class*="MuiOutlinedInput-root"]:hover [class*="MuiOutlinedInput-notchedOutline"] {
  border-color: rgba(101, 184, 201, .62) !important;
}

#root [class*="Mui-focused"] [class*="MuiOutlinedInput-notchedOutline"] {
  border-color: #65b8c9 !important;
  border-width: 1px !important;
}

#root input,
#root label {
  color: #f2f0e9 !important;
}

#root [class*="MuiInputLabel-root"] {
  color: #b7b2a5 !important;
}

#root button[type="submit"],
#root [class*="MuiButton-contained"] {
  min-height: 44px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #42c78f 0%, #65b8c9 100%) !important;
  color: #0e1714 !important;
  font-weight: 850 !important;
  text-transform: none !important;
  box-shadow: 0 16px 32px rgba(66, 199, 143, .2) !important;
}

#root button[type="submit"]:hover,
#root [class*="MuiButton-contained"]:hover {
  filter: brightness(1.06);
}

#root a {
  color: #9bd7e2 !important;
  text-decoration-color: rgba(155, 215, 226, .45) !important;
}

#root [class*="MuiCheckbox-root"] {
  color: #65b8c9 !important;
}

.dedet-auth-actions {
  display: grid !important;
  width: 100%;
  gap: 12px !important;
}

#root .dedet-portal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, #42c78f 0%, #65b8c9 100%);
  color: #0e1714 !important;
  font-weight: 850;
  line-height: 1.75;
  text-decoration: none !important;
  box-shadow: 0 16px 32px rgba(66, 199, 143, .2);
}

#root .dedet-portal-link:hover {
  filter: brightness(1.06);
}

#root .dedet-auth-actions button {
  border: 1px solid rgba(242, 240, 233, .2) !important;
  background: transparent !important;
  color: #f2f0e9 !important;
  box-shadow: none !important;
}

#root img[alt*="Authelia"],
#root svg[aria-label*="Authelia"] {
  filter: saturate(.55) brightness(1.18);
}

@media (max-width: 979px) {
  body[data-theme]::before {
    inset: 10px;
    border-radius: 12px;
  }

  .dedet-login-brand {
    position: relative;
    left: auto;
    top: auto;
    width: min(100% - 36px, 620px);
    margin: 26px auto 0;
    transform: none;
    text-align: center;
  }

  .dedet-login-title {
    font-size: 52px;
  }

  .dedet-login-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .dedet-login-points {
    display: none;
  }

  #root {
    width: 100%;
    margin-left: 0;
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .dedet-login-brand {
    width: min(100% - 24px, 620px);
    margin-top: 20px;
  }

  .dedet-login-kicker {
    margin-bottom: 16px;
  }

  .dedet-login-title {
    font-size: 40px;
  }
}
