:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #edfaff;
  background: #050c16;
  --cyan: #67f2ff;
  --muted: #b9cbd8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-image: linear-gradient(0deg, #050c16ee, transparent 28%, transparent 73%, #050c16dd), url("/portal/escena.svg");
  background-size: cover;
  background-position: 35% center;
}
.masthead, footer {
  padding: 1rem clamp(1rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
}
.identity { display: flex; align-items: center; gap: .65rem; letter-spacing: .16em; }
.label, .eyebrow, footer {
  font: 600 .72rem/1.5 ui-monospace, monospace;
  letter-spacing: .12em;
  color: #c8e1ee;
}
.separator, .eyebrow, h1 span { color: var(--cyan); }
main {
  width: min(90%, 1380px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(295px, 420px);
  gap: clamp(1.5rem, 6vw, 7rem);
  align-items: end;
  padding: clamp(2rem, 8vh, 6rem) 0;
}
.threshold { align-self: end; }
.intro { text-shadow: 0 2px 8px #000, 0 4px 20px #000; }
h1 {
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: .96;
  letter-spacing: -.06em;
  margin: .25rem 0 .6rem;
}
.intro p:last-child { margin-bottom: 0; color: #eefaff; }
p { line-height: 1.55; color: var(--muted); }
.access {
  position: relative;
  isolation: isolate;
  padding: clamp(1.2rem, 3.5vw, 2.7rem);
  border: 1px solid #74e7ff76;
  background: linear-gradient(145deg, #10283aee, #06101af5 70%);
  box-shadow: 0 0 32px #1bd9ff28, inset 0 0 22px #36b8e31a, 0 16px 48px #0009;
}
.access::before, .access::after {
  content: "";
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  pointer-events: none;
}
.access::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.access::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; margin: .55rem 0; letter-spacing: -.035em; }
form { display: grid; gap: 1rem; margin-top: 1.4rem; }
label { display: grid; gap: .45rem; font-size: .9rem; font-weight: 600; }
input, button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #456374;
  padding: .75rem;
  font: inherit;
  border-radius: 3px;
}
input { background: #060f19; color: inherit; font-size: 1rem; }
button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--cyan);
  color: #05131b;
  border-color: var(--cyan);
  font-weight: 800;
}
button:hover { background: #a2f6fc; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.error { color: #ffc0bf; border-left: 2px solid #ff8e89; padding-left: .75rem; }
footer { letter-spacing: .07em; }
@media (max-width: 740px) {
  body {
    background-image: linear-gradient(180deg, #050c16a8, transparent 90px, transparent 125px, #050c1666 260px, #050c16 465px), url("/portal/escena.svg");
    background-size: 100% 100%, auto clamp(390px, 62vw, 490px);
    background-position: center top, 33% top;
    background-repeat: no-repeat;
  }
  main {
    width: min(92%, 490px);
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    padding: clamp(120px, 31vw, 230px) 0 1.6rem;
  }
  .label, footer { font-size: .62rem; }
}

.threshold { align-self: center; text-align: center; }
.intro .eyebrow {
  display: inline-block;
  color: #f0fcff;
  background: #071626ed;
  border-bottom: 1px solid #67f2ffb0;
  padding: .35rem .75rem;
}
footer img { height: auto; max-height: 38px; object-fit: contain; }
@media (min-width: 741px) {
  .threshold { position: relative; left: clamp(0px, 4vw, 70px); }
}
