:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #f0f8ff;
  background: #030911;
  --muted: #a1b5c7;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid #9ff7ff; outline-offset: 4px; }
.layout {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 33% 52%, #092236 0%, #06131f 33%, #030911 69%);
}
.layout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(#67aff90b 1px, transparent 1px), linear-gradient(90deg, #67aff90b 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 48%, #000, transparent 73%);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem clamp(1.25rem, 5vw, 5rem);
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: .8rem; font-size: 1rem; font-weight: 650; letter-spacing: .12em; }
.logo {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #62dff4;
  box-shadow: 0 0 16px #39c0fa38, inset 0 0 10px #39c0fa24;
  transform: rotate(45deg) scale(.77);
}
.logo i { display: block; width: 9px; height: 9px; background: #7ceeff; box-shadow: 0 0 12px #56edff; }

main {
  width: min(1400px, 100%);
  min-height: calc(100svh - 90px);
  margin: auto;
  padding: 0 clamp(1.25rem, 6vw, 6rem) 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 415px);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
}
.visual { display: grid; place-items: center; position: relative; min-width: 0; }
.art { width: min(126%, 870px); position: relative; aspect-ratio: 1; }
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#69c3ff26 1px, transparent 1px),
    linear-gradient(90deg, #69c3ff26 1px, transparent 1px);
  background-size: 3.4% 3.4%;
  background-position: center;
  mask-image: radial-gradient(ellipse 17% 13% at 50% 21%, #000 24%, #000b 52%, transparent 100%);
}
.portrait {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 80%;
}
@media (prefers-reduced-motion: no-preference) {
  .portrait { animation: breathe 5.6s ease-in-out infinite; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012, 1.018); }
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/assets/brain.webp") center / contain no-repeat;
  mask-image: radial-gradient(ellipse 16% 10.5% at 50% 18.5%, #000e 48%, #000d 73%, transparent 100%);
  mix-blend-mode: screen;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  mask-image:
    radial-gradient(ellipse at 50% 48%, #000 36%, #000d 57%, transparent 74%),
    radial-gradient(ellipse 17% 13% at 50% 21%, #0006 19%, #000a 51%, #000 100%);
  mask-composite: intersect;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 13.1% 17.9% at 50% 80%,
    rgba(8, 45, 98, .72), rgba(6, 39, 69, .44) 34%, transparent 100%);
}
.card {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid #284859;
  border-radius: 21px;
  background: linear-gradient(155deg, #0e2031ef, #08111ded 60%);
  box-shadow: 0 24px 100px #0009, inset 0 1px #a2e7ff0b;
}
.card-accent {
  position: absolute;
  top: -1px;
  left: 2rem;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8cecff, transparent);
  box-shadow: 0 0 16px #39cfff;
}
h1 { margin: 0; font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1.08; font-weight: 650; letter-spacing: -.055em; }
.intro { margin: .8rem 0 2rem; color: var(--muted); line-height: 1.55; }
label { display: block; margin-bottom: .5rem; color: #d4e5f0; font-size: .875rem; font-weight: 550; }
input {
  width: 100%;
  margin: 0 0 1.2rem;
  padding: .83rem .9rem;
  border: 1px solid #2b4356;
  border-radius: 9px;
  background: #050e19;
  color: #eefaff;
  outline: 0;
}
input::placeholder { color: #849bac; }
input:focus { border-color: #72e7f6; box-shadow: 0 0 0 3px #52d6fc22; }
.submit {
  min-height: 48px;
  width: 100%;
  border: 1px solid #a4f4ff;
  border-radius: 9px;
  background: linear-gradient(110deg, #a3f9ff, #5edfff 65%, #65b9ff);
  color: #052135;
  font-weight: 750;
  box-shadow: 0 6px 28px #34c9ff38;
}
.submit:hover { filter: brightness(1.09); }
@media (max-width: 820px) {
  .top { padding-block: 1.1rem; }
  main { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 2.25rem; }
  .art { width: min(100%, 460px); }
  .card { width: min(100%, 460px); margin: -1.25rem auto 0; }
}
@media (max-width: 360px) {
  .brand { letter-spacing: .12em; gap: .4rem; }
}
@media (min-width: 821px) {
  .art { width: min(126%, 870px, max(500px, calc(100svh - 150px))); }
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field-pair > div { min-width: 0; }
@media (max-width: 400px) {
  .field-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
#registration-status { margin: 1rem 0 0; color: #b9f3fc; line-height: 1.5; }
#applicant { padding: 1rem; background: #071321; border-radius: 9px; overflow-wrap: anywhere; line-height: 1.6; }
#applicant dt { color: var(--muted); font-size: .875rem; }
#applicant dd { margin: 0 0 .5rem; }
#applicant dd:last-child { margin-bottom: 0; }
