@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #21172e;
  background: #171020;
  --display: "Space Grotesk", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100svh;
  margin: 0;
  padding: 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 24% 19%, #503078 0%, transparent 45%),
    radial-gradient(ellipse at 89% 79%, #311d52 0%, transparent 46%),
    #171020;
}
.entry {
  width: min(100%, 930px);
  min-height: 485px;
  display: grid;
  grid-template-columns: 46% 54%;
  border: 1px solid #77608a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px #08050ed0;
}
.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  padding: 29px;
  background:
    radial-gradient(ellipse at 53% 55%, #6c42a8 0%, #392459 43%, #251737 79%);
  color: #f5efff;
}
.identity::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .35;
  background: radial-gradient(circle, #c9aaf5 1px, transparent 1.5px) 0 0 / 23px 23px;
  mask-image: radial-gradient(ellipse at center, #000 14%, transparent 77%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 700 1.28rem/1 var(--display);
  white-space: nowrap;
}
.brand strong { color: #d8c4fa; }
.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #ae8bf2;
  background: #7147c2;
}
.mark svg { width: 25px; height: 25px; }
.site-name { color: #d9caeb; font-size: .82rem; letter-spacing: .045em; }
.orbit-art {
  position: absolute;
  z-index: -1;
  width: 325px;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}
.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95%;
  height: 59%;
  border: 1px solid #cfb6fd69;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-middle { width: 79%; height: 49%; border-color: #cfb6fd95; }
.orbit-inner { width: 63%; height: 39%; border-color: #cfb6fdbc; }
.planet {
  width: 114px;
  height: 114px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(24deg);
  border: 1px solid #e3ceffc2;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 34%, #aa7ff0, #6339a5 53%, #372053 85%);
  box-shadow: 0 0 45px #a47bea7a, inset 0 0 17px #e6ceff55;
}
.planet::before, .planet i {
  content: "";
  position: absolute;
  inset: 10% -1%;
  border: 1px solid #f0ddff7c;
  border-radius: 50%;
}
.planet::before { inset: 0 27%; }
.planet i:nth-child(1) { inset: 24% -1%; }
.planet i:nth-child(2) { inset: 38% -1%; }
.planet i:nth-child(3) { inset: 0 40%; }
.point {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #efe4ff;
  box-shadow: 0 0 13px #d7aeff;
}
.point-one { top: 31%; left: 10%; }
.point-two { bottom: 31%; right: 16%; width: 6px; height: 6px; }
.point-three { top: 28%; right: 20%; width: 5px; height: 5px; }
.login {
  display: grid;
  place-items: center;
  background: #fcf9ff;
  padding: 43px;
}
.login-inner { width: min(100%, 345px); }
.access-label {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #e0d1f2;
  border-radius: 7px;
  background: #f1e9fc;
  color: #573595;
  font-size: .82rem;
  font-weight: 700;
}
.access-label svg { width: 17px; height: 17px; }
h1 {
  margin: 16px 0 4px;
  font: 700 clamp(2.65rem, 6vw, 3.6rem)/1 var(--display);
  letter-spacing: -.07em;
}
.intro { margin: 11px 0 26px; color: #5e536a; font-size: 1rem; line-height: 1.45; }
label { display: inline-block; margin-bottom: 7px; font-size: .93rem; font-weight: 700; }
.password-field {
  display: flex;
  align-items: center;
  border: 1px solid #d6c8e1;
  border-radius: 9px;
  background: white;
}
.password-field:focus-within { border-color: #6b40bc; outline: 2px solid #ad91db; outline-offset: 2px; }
input, button { font: inherit; }
.password-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px 13px;
  min-height: 49px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  outline: 0;
}
button { cursor: pointer; }
.reveal {
  height: 38px;
  margin: 0 5px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  color: #53368d;
  background: transparent;
  font-size: .86rem;
  font-weight: 730;
}
.reveal:hover { background: #f1e9fc; }
.submit {
  width: 100%;
  min-height: 51px;
  margin-top: 16px;
  border: 1px solid #5835a8;
  border-radius: 9px;
  background: #6239b5;
  color: #fff;
  font-weight: 750;
}
.submit:hover { background: #4d288f; }
button:focus-visible { outline: 2px solid #6b40bc; outline-offset: 3px; }
.feedback { margin: 10px 0 0; color: #912641; font-size: .9rem; line-height: 1.4; }
@media (max-width: 680px) {
  body { padding: 17px; }
  .entry { grid-template-columns: 1fr; border-radius: 18px; }
  .identity { min-height: 150px; padding: 20px; }
  .orbit-art { width: 235px; left: auto; right: -75px; top: 36%; }
  .planet { width: 83px; height: 83px; }
  .login { padding: 30px 23px 35px; }
}

.portal-back { display: inline-block; margin-top: 17px; color: #5f3ba0; font-size: .9rem; font-weight: 670; }
