@font-face {
  font-family: Manrope;
  src: url("/autoevaluacion-autismo/fuentes/manrope.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  min-height: 100svh;
  background: #0d1025;
  color: #f4f1ff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
}
#cosmos,
.glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glow {
  background:
    radial-gradient(ellipse at 16% 40%, #824bd323, transparent 50%),
    radial-gradient(ellipse at 80% 80%, #25c9ad16, transparent 50%);
  z-index: -1;
}
header {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5vw;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.brand svg {
  width: 62px;
  height: 38px;
  flex: none;
}
.brand small {
  display: block;
  color: #b8b6d1;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.header-actions a,
.header-actions button {
  font: inherit;
  font-size: 11px;
  color: #c1bfd9;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 5vw 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
  min-height: calc(100svh - 110px);
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #c0b9df;
  font-weight: 700;
}
h1 {
  font-size: clamp(43px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 28px 0;
}
h1 span {
  background: linear-gradient(110deg, #f4bdcb, #c4b4ff 45%, #8edacd);
  background-clip: text;
  color: transparent;
}
.welcome > p {
  font-size: 15px;
  line-height: 1.85;
  color: #bcbad1;
  max-width: 430px;
}
.promises {
  display: grid;
  gap: 18px;
  margin: 36px 0;
  font-size: 12px;
}
.promises i {
  font-size: 9px;
  color: #9c91c9;
  border: 1px solid #aea2e533;
  padding: 6px;
  border-radius: 50%;
  margin-right: 12px;
  font-style: normal;
}
.welcome .gentle {
  font-size: 11px;
  max-width: 390px;
  color: #9290ad;
  line-height: 1.7;
}
.access-card {
  padding: 30px;
  border: 1px solid #d2c6ff29;
  border-radius: 28px;
  background: linear-gradient(135deg, #26233cbb, #171a30dd);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 100px #0004;
  position: relative;
  overflow: hidden;
}
.access-card:before {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, #d3c2ff80, transparent);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.orbit {
  font-size: 23px;
  color: #c4afe8;
}
.tabs {
  display: flex;
  gap: 4px;
  border-radius: 13px;
  background: #10112488;
  padding: 4px;
  margin: 22px 0;
}
.tabs button {
  flex: 1;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #bcb6d5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.tabs button[aria-pressed="true"] {
  background: #46415f;
  color: #fff;
  box-shadow: 0 3px 12px #0003;
}
h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 20px 0 6px;
}
.subtitle {
  font-size: 12px;
  color: #b5aecf;
  line-height: 1.6;
  margin: 0 0 23px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #d2cce4;
}
input,
select {
  display: block;
  width: 100%;
  border: 1px solid #b1a9d634;
  border-radius: 11px;
  background: #0c102559;
  color: #fff;
  padding: 13px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
  margin-top: 7px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus,
select:focus {
  border-color: #b8a7ed;
  box-shadow: 0 0 0 3px #ac9ce31e;
}
input::placeholder {
  color: #9288ad;
}
select option {
  background: #201e36;
}
small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  color: #a9a1c1;
  margin-top: 6px;
}
.password {
  position: relative;
}
.password input {
  padding-right: 65px;
}
.password button {
  position: absolute;
  right: 9px;
  top: 0;
  height: 100%;
  background: none;
  border: 0;
  color: #c9bde7;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.primary,
.secondary {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    filter 0.18s;
}
.primary {
  background: linear-gradient(120deg, #e2c1ed, #c5bbfa 55%, #a8d6e7);
  color: #222139;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px #b298e315;
}
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 30px #b298e333;
  filter: brightness(1.06);
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}
.secondary {
  background: transparent;
  color: #d9d0ef;
  border-color: #b1a9d640;
}
.links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0;
}
.links button,
.back-link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: #bdb2d5;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reviewer {
  font-size: 10px;
  color: #a198b7;
  margin: 24px 0 0;
  line-height: 1.7;
}
.card-foot {
  border-top: 1px solid #c1b2e120;
  margin-top: 25px;
  padding-top: 17px;
  font-size: 9px;
  color: #aaa2c3;
  line-height: 1.6;
}
.card-foot span {
  color: #97d0bc;
  margin-right: 8px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.wide {
  grid-column: 1/-1;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.steps {
  display: flex;
  gap: 12px;
  font-size: 9px;
  margin-bottom: 20px;
  color: #8d849f;
  justify-content: space-between;
}
.steps .selected {
  color: #d8c2fa;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.form-actions .secondary {
  flex: none;
}
.privacy-copy {
  font-size: 10px;
  line-height: 1.7;
  background: #171a2b88;
  padding: 16px;
  border: 1px solid #c5bad822;
  border-radius: 13px;
  color: #b8afcb;
  margin: 20px 0;
}
.privacy-copy strong {
  color: #e0d5ef;
  font-size: 12px;
}
.privacy-copy p {
  margin: 8px 0;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 10px;
  line-height: 1.7;
  font-weight: 400;
}
.check input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 3px 0 0;
  accent-color: #c4a7ee;
}
.check b {
  display: block;
  font-weight: 600;
  color: #e0d2f5;
}
.optional {
  padding: 12px;
  background: #a8d6c80b;
  border: 1px solid #a8d6c822;
  border-radius: 11px;
}
.status {
  font-size: 11px;
  line-height: 1.7;
  color: #c9e8d7;
  margin: 14px 0 0;
  white-space: pre-line;
}
.status.error {
  color: #ffc5cf;
}
.status:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #dcbdff;
  outline-offset: 4px;
}
#verification p {
  font-size: 13px;
  line-height: 1.8;
  color: #c0b4d3;
}
@media (max-width: 800px) {
  header {
    padding: 20px 6vw;
  }
  .header-actions a {
    display: none;
  }
  main {
    grid-template-columns: 1fr;
    padding: 10px 6vw 30px;
    gap: 22px;
    max-width: 620px;
    min-height: auto;
  }
  .welcome {
    padding: 5px 5px 0;
  }
  .welcome .eyebrow,
  .welcome .promises,
  .welcome .gentle {
    display: none;
  }
  h1 {
    font-size: 38px;
    margin: 8px 0 12px;
    line-height: 1.12;
  }
  h1 br {
    display: none;
  }
  h1 br:after {
    content: " ";
  }
  .welcome > p {
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
  }
  .access-card {
    padding: 24px;
    border-radius: 22px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand svg {
    width: 45px;
  }
  .header-actions button {
    font-size: 9px;
    max-width: 65px;
  }
}
@media (max-width: 400px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .access-card {
    padding: 19px;
  }
  h1 {
    font-size: 33px;
  }
  .brand span {
    font-size: 11px;
  }
  .brand small {
    max-width: 160px;
  }
  .steps {
    font-size: 8px;
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none !important;
  }
}

.access-card:has(#registerForm:not([hidden])) .tabs {
  margin: 12px 0;
}
.access-card:has(#registerForm:not([hidden])) h2 {
  font-size: 21px;
  margin-top: 14px;
}
.access-card:has(#registerForm:not([hidden])) .subtitle {
  margin-bottom: 17px;
}
.access-card:has(#registerForm:not([hidden])) .card-foot {
  margin-top: 16px;
  padding-top: 12px;
}
.access-card:has(#registerForm:not([hidden])) .privacy-copy {
  margin: 4px 0 15px;
}
.access-card:has(#registerForm:not([hidden])) .steps {
  margin-bottom: 16px;
}
@media (max-width: 800px) and (max-height: 750px) {
  .welcome {
    display: none;
  }
  header {
    padding: 15px 6vw;
  }
  main {
    padding-top: 5px;
  }
  .access-card {
    padding: 20px;
  }
  .tabs {
    margin: 15px 0;
  }
  .card-foot {
    margin-top: 16px;
    padding-top: 12px;
  }
  .reviewer {
    margin-top: 16px;
  }
}

.access-card:has(#registerForm:not([hidden]))[data-step="3"] .tabs,
.access-card:has(#registerForm:not([hidden]))[data-step="3"] .card-top,
.access-card:has(#registerForm:not([hidden]))[data-step="3"] .card-foot {
  display: none;
}

/* The access page occupies one viewport; long registration text stays inside its panel. */
html,body{height:100%;overflow:hidden}
body{height:100dvh;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}
body>header{width:100%;padding-top:clamp(10px,2.5dvh,24px);padding-bottom:clamp(10px,2.5dvh,24px)}
body>main{width:100%;height:100%;min-height:0;padding-top:8px;padding-bottom:18px;overflow:hidden}
.access-card{width:100%;max-height:100%;min-height:0;display:flex;flex-direction:column;padding:clamp(18px,3dvh,30px)}
.access-card>.card-top,.access-card>.tabs,.access-card>h2,.access-card>.subtitle,.access-card>.status,.access-card>.card-foot{flex:none}
.access-card>form,.access-card>#verification{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#9d8dba44 transparent}
.access-card>.tabs{margin:16px 0}.access-card>h2{margin-top:12px}.access-card>.subtitle{margin-bottom:18px}
.access-card .card-foot{margin-top:16px;padding-top:12px}.access-card .links{margin-bottom:2px}
.access-card>.status{max-height:5em;overflow:auto}
@media(max-width:800px){body>main{display:flex;align-items:center;justify-content:center;max-width:620px;padding:8px 6vw 18px}.welcome{display:none}.access-card{flex:none}}
@media(max-height:650px){body>header{padding-top:10px;padding-bottom:10px}.brand svg{width:42px;height:29px}body>main{padding-top:5px;padding-bottom:10px}.access-card{padding:17px 20px}.access-card>.tabs{margin:10px 0}.access-card>h2{font-size:21px;margin:10px 0 5px}.access-card>.subtitle{font-size:11px;margin-bottom:12px}.access-card .card-foot{margin-top:12px;padding-top:10px}.access-card label{margin-bottom:11px}.access-card input,.access-card select{padding:10px 11px;margin-top:5px}.access-card .primary,.access-card .secondary{padding:11px 13px}.access-card .links{margin-top:11px}.access-card>.status{margin-top:9px}}
@media(max-height:520px){.welcome{display:none}body>main{display:flex;max-width:620px;align-items:center;justify-content:center;padding-left:5vw;padding-right:5vw}.access-card{padding:14px 17px}.access-card>.card-top{display:none}.access-card>.tabs{margin:0 0 10px}.tabs button{padding:8px}.access-card>h2{font-size:20px;margin:3px 0 5px}.access-card>.subtitle{margin-bottom:12px}.access-card .card-foot{margin-top:10px;padding-top:8px;font-size:9px}.access-card .links{margin-top:10px}.access-card>.status{line-height:1.5;max-height:3em}.brand small{display:none}}
@media(min-width:520px) and (max-height:480px){body>header{padding-top:7px;padding-bottom:7px}.access-card{padding:12px 18px}.access-card:has(#loginForm:not([hidden]))>.tabs{margin-bottom:7px}.access-card:has(#loginForm:not([hidden]))>.subtitle{display:none}.access-card:has(#loginForm:not([hidden]))>h2{font-size:18px;margin-bottom:10px}.access-card:has(#loginForm:not([hidden])) .card-foot{display:none}#loginForm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 14px}#loginForm label{margin:0}#loginForm>.primary,#loginForm>.links{grid-column:1/-1}#loginForm>.links{margin:0}}
