:root {
  --negro: #111318;
  --cian: #00c5d9;
  --cian-deep: #00a8b8;
  --blanco: #f4f6fa;
  --azul-noche: #0b1f3b;
  --ink: #111318;
  --muted: rgba(244, 246, 250, 0.62);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--blanco);
  background: var(--negro);
  min-height: 100dvh;
  overflow-x: hidden;
}

.stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.brand-plane {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(900px 600px at 18% 22%, rgba(0, 197, 217, 0.18), transparent 55%),
    radial-gradient(700px 500px at 80% 90%, rgba(11, 31, 59, 0.9), transparent 50%),
    linear-gradient(155deg, #0b1f3b 0%, #111318 48%, #0a1528 100%);
  overflow: hidden;
}

.brand-plane::before,
.brand-plane::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
}

.brand-plane::before {
  inset: -20% -10% auto auto;
  width: min(72vw, 720px);
  border-radius: 28%;
  border: 1px solid rgba(0, 197, 217, 0.12);
  animation: orbit-ring 28s linear infinite;
}

.brand-plane::after {
  inset: auto auto -15% -18%;
  width: min(55vw, 520px);
  border-radius: 32%;
  border: 1px solid rgba(244, 246, 250, 0.06);
  animation: orbit-ring 40s linear infinite reverse;
}

@keyframes orbit-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-mark,
.brand-hero,
.brand-foot {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  animation: rise 0.8s ease 0.1s forwards;
}

.brand-mark img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: block;
}

.brand-mark .word {
  display: grid;
  gap: 0.05rem;
}

.brand-mark .word strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark .word span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cian);
  font-weight: 600;
}

.brand-hero {
  max-width: 28rem;
  margin: 12vh 0;
  opacity: 0;
  animation: rise 0.9s ease 0.25s forwards;
}

.brand-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.brand-hero h1 em {
  font-style: normal;
  color: var(--cian);
}

.brand-hero p {
  margin: 0;
  font-family: Inter, "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.brand-foot {
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
  color: rgba(244, 246, 250, 0.45);
  opacity: 0;
  animation: rise 0.8s ease 0.4s forwards;
}

.access-plane {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--blanco);
  color: var(--ink);
}

.access {
  width: min(100%, 420px);
  opacity: 0;
  animation: rise 0.85s ease 0.35s forwards;
}

.access-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cian-deep);
  margin-bottom: 0.65rem;
}

.access h2 {
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.access .lead {
  margin: 0 0 2rem;
  font-family: Inter, sans-serif;
  color: rgba(17, 19, 24, 0.58);
  font-size: 0.98rem;
  line-height: 1.5;
}

form { display: grid; gap: 1.05rem; }

label {
  display: grid;
  gap: 0.48rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(17, 19, 24, 0.52);
}

input, select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(17, 19, 24, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  min-height: 50px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(17, 19, 24, 0.45) 50%),
    linear-gradient(135deg, rgba(17, 19, 24, 0.45) 50%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
}

input:hover, select:hover {
  border-color: rgba(0, 197, 217, 0.35);
}

input:focus, select:focus {
  outline: none;
  border-color: rgba(0, 197, 217, 0.75);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 197, 217, 0.18);
}

.row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -0.15rem;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(17, 19, 24, 0.7);
  cursor: pointer;
}

.remember input {
  width: auto;
  accent-color: var(--cian);
}

.link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--azul-noche);
  text-decoration: none;
}

.link:hover { color: var(--cian-deep); }

.submit {
  margin-top: 0.45rem;
  border: 0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--negro);
  background: linear-gradient(135deg, #19d0e2 0%, var(--cian) 45%, var(--cian-deep) 100%);
  box-shadow: 0 10px 24px rgba(0, 197, 217, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.submit:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 197, 217, 0.36);
}
.submit:active { transform: translateY(0); }
.submit:disabled { opacity: 0.7; cursor: wait; transform: none; }

.meta {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(17, 19, 24, 0.08);
  font-family: Inter, sans-serif;
  font-size: 0.8rem;
  color: rgba(17, 19, 24, 0.48);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.toast {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(0, 197, 217, 0.12);
  color: var(--azul-noche);
  border: 1px solid rgba(0, 197, 217, 0.28);
}

.toast.show { display: block; animation: rise 0.35s ease; }
.toast.error {
  background: rgba(232, 93, 76, 0.1);
  border-color: rgba(232, 93, 76, 0.28);
  color: #9a3a2e;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  .stage { grid-template-columns: 1fr; }
  .brand-plane { min-height: 38vh; padding-bottom: 2rem; }
  .brand-hero { margin: 2.2rem 0 1.2rem; }
  .brand-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .brand-mark, .brand-hero, .brand-foot, .access { opacity: 1; }
}
