:root {
  --val-bg: #060a0d;
  --val-panel: #10181e;
  --val-panel-deep: #080d11;
  --val-line: #25323a;
  --val-line-hot: #3a4a53;
  --val-text: #ece8e1;
  --val-muted: #8f9a94;
  --val-red: #ff4655;
  --val-red-hot: #ff6b76;
  --val-red-dark: #c93743;
  --val-mint: #3de0b5;
}

html,
body.portal-body {
  min-height: 100%;
  background: var(--val-bg) !important;
  color: var(--val-text);
}

body.portal-body {
  background:
    radial-gradient(900px 560px at 72% -18%, rgba(255, 70, 85, .14), transparent 66%),
    radial-gradient(800px 600px at -8% 105%, rgba(61, 224, 181, .055), transparent 62%),
    linear-gradient(145deg, #04080a 0%, #0a1116 48%, #05090c 100%) !important;
  overflow: hidden;
}

.cheat-login {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

/* Background geometry */
.cheat-login::before {
  content: "";
  position: absolute;
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  left: -24vw;
  top: -30vw;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #0d161c 0%, #070b0e 60%, #040608 100%);
  border: 1px solid rgba(236, 232, 225, .07);
  box-shadow: 28px 28px 80px rgba(0, 0, 0, .4);
  pointer-events: none;
}

.cheat-login::after {
  content: "";
  position: absolute;
  width: min(50vw, 640px);
  height: min(50vw, 640px);
  right: -22vw;
  bottom: -30vw;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 70, 85, .12);
  box-shadow: inset 0 0 80px rgba(255, 70, 85, .03);
  pointer-events: none;
}

body.portal-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236, 232, 225, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 232, 225, .024) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 80%);
  z-index: 0;
}

/* Login panel */
.cheat-login .auth-card {
  position: relative;
  z-index: 2;
  width: min(432px, 100%);
  padding: 42px 40px 36px !important;
  background: linear-gradient(155deg, rgba(19, 28, 34, .97), rgba(7, 12, 16, .99)) !important;
  border: 1px solid rgba(37, 50, 58, .95) !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(255, 70, 85, .035) inset,
    0 0 45px rgba(255, 70, 85, .035);
}

.cheat-login .auth-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--val-red), rgba(255, 70, 85, .45) 42%, transparent 100%);
}

.cheat-login .auth-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24px;
  width: 2px;
  height: 118px;
  background: linear-gradient(var(--val-red), transparent);
}

.cheat-login .portal-form {
  margin: 0;
  display: grid;
  gap: 23px;
}

.cheat-login .portal-field {
  display: grid;
  gap: 9px;
}

.cheat-login .portal-field label {
  color: var(--val-muted);
  font: 600 10px/1.4 "Cascadia Mono", Consolas, monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.cheat-login .portal-field input {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 15px;
  color: var(--val-text) !important;
  background: rgba(6, 11, 14, .78) !important;
  border: 1px solid var(--val-line) !important;
  border-radius: 2px !important;
  font-size: 14px;
  outline: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.cheat-login .portal-field input:hover {
  border-color: var(--val-line-hot) !important;
}

.cheat-login .portal-field input:focus {
  border-color: var(--val-red) !important;
  background: rgba(10, 16, 20, .96) !important;
  box-shadow: 0 0 0 3px rgba(255, 70, 85, .1), 0 0 24px rgba(255, 70, 85, .06) !important;
}

.cheat-login .password-wrap {
  position: relative;
}

.cheat-login .password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--val-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cheat-login .password-toggle:hover {
  color: var(--val-red);
}

.cheat-login .portal-submit {
  width: 100%;
  height: 52px;
  margin-top: 3px;
  color: #090d10 !important;
  background: var(--val-red) !important;
  border: 0 !important;
  border-radius: 2px !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(255, 70, 85, .18);
  font: 800 13px/1 "Microsoft YaHei UI", sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}

.cheat-login .portal-submit:hover {
  background: var(--val-red-hot) !important;
  box-shadow: 0 12px 38px rgba(255, 70, 85, .25);
}

.cheat-login .portal-submit:active {
  background: var(--val-red-dark) !important;
  transform: translateY(1px);
}

.cheat-login .portal-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.cheat-login .form-error {
  min-height: 16px;
  margin: -4px 0 0;
  color: var(--val-red-hot);
  font-size: 12px;
  letter-spacing: .02em;
}

.cheat-login .form-meta,
.cheat-login .auth-head,
.cheat-login .auth-foot {
  display: none !important;
}

@media (max-width: 540px) {
  .cheat-login {
    padding: 16px;
  }

  .cheat-login::before {
    width: 520px;
    height: 520px;
    left: -330px;
    top: -300px;
  }

  .cheat-login .auth-card {
    padding: 32px 22px 26px !important;
  }
}
