.eg-home-page [hidden] { display: none !important; }

.eg-home-page #auth-entry {
  min-height: 100svh;
  background: linear-gradient(165deg, #161524ed, #242039db 53%, #161524f6);
}

.eg-home-page #auth-entry .section-summary {
  padding: clamp(24px, 5vw, 64px) 0 32px;
  background: transparent;
}

#auth-entry > .section > .container { max-width: 1000px; }
#auth-entry :is(#card-login, #card-register) { align-self: flex-start; }

#auth-entry .eg-auth-heading h1 {
  color: #fff4df;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 20px;
}

#auth-entry :is(#card-login, #card-register) > div {
  --card-accent: #e8c581;
  border: 1px solid var(--card-accent);
  border-radius: 14px;
  background: linear-gradient(135deg, #392d4a, #252335) !important;
  box-shadow: 0 14px 34px #08071380, inset 0 3px var(--card-accent);
}

#auth-entry #card-register > div {
  --card-accent: #bdb0ec;
  background: linear-gradient(135deg, #363456, #252335) !important;
}

#auth-entry :is(#login-form, #reg-form) h2 {
  color: #fff4df;
  font-weight: 650;
  font-size: 23px;
}

#auth-entry :is(#login-form, #reg-form) .md-form {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px !important;
  text-align: left;
}

#auth-entry :is(#login-form, #reg-form) .md-form label {
  position: static;
  transform: none !important;
  pointer-events: auto;
  order: -1;
  margin: 0 0 5px;
  color: #fff;
  font-size: 14px !important;
}

#auth-entry :is(#login-form, #reg-form) input.form-control {
  margin: 0 !important;
  min-height: 44px;
  box-sizing: border-box;
  height: auto;
  padding: 8px 11px;
  border: 1px solid #a99bbd;
  border-radius: 8px;
  background: #171424a1;
  color: #fff;
}

#auth-entry :is(#login-form, #reg-form) input::placeholder { color: #dfd7edc9; }

#auth-entry :is(#login-form, #reg-form) input:focus {
  border-color: #ffe0a0;
  box-shadow: 0 0 0 2px #ffe0a043;
}

#auth-entry #registration-name-rule, #auth-entry #registration-referrer-rule {
  margin-bottom: 0;
  color: #eee4f7;
  font-size: 12px;
  line-height: 1.5;
}

#auth-entry :is(#login-form, #reg-form) button[type="submit"] {
  min-height: 44px;
  border-radius: 8px;
  color: #241a2b !important;
  background: #f2ce85 !important;
  font-size: 15px;
  font-weight: 700;
}

#auth-entry #reg-form button[type="submit"] { background: #d7cafb !important; }
#auth-entry #web-alert { margin-bottom: 12px; }
#auth-entry :is(a, button, input):focus-visible { outline: 2px solid #ffe0a0; outline-offset: 2px; }

@media (max-width: 767.98px) {
  .eg-home-page #auth-entry .section-summary { padding: 20px 0 26px; }
  #auth-entry .eg-auth-heading h1 { margin-bottom: 12px; }
  #auth-entry :is(#card-login, #card-register) { scroll-margin-top: 12px; }
}
