/* KLPTBUD's original illustration and motion language, shared by both servers. */
.auth-page {
  background:
    radial-gradient(ellipse at 12% 13%, #dbe4ff 0, transparent 50%),
    radial-gradient(ellipse at 95% 80%, #fff0df 0, transparent 45%), #fcfdff;
}
.auth-grid {
  max-width: 1340px;
  grid-template-columns: 1.18fr 1fr;
  gap: 76px;
  padding: 15px 48px 32px;
}
.hero h1 {
  color: #171e2b;
  font-size: clamp(38px, 4.1vw, 58px);
  font-weight: 780;
  margin-top: 12px;
}
.hero .lead {
  font-size: 16px;
  color: #738096;
  max-width: 520px;
}
.chip {
  font-size: 12px;
  padding: 11px 15px;
  box-shadow: 0 3px 6px #21365c0c;
}
.auth-card {
  padding: 34px;
  border-radius: 32px;
  background: #fffffff2;
  box-shadow: 0 28px 65px -20px #5670b52b;
}
.auth-card h2 {
  color: #1c222c;
}
.choice-card {
  padding: 24px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 3px #1b2e4b05;
}
.choice-card h3 {
  font-size: 17px;
}
.choice-card p {
  font-size: 13px;
  color: #7b8390;
}
.choice-card .arrow {
  align-self: center;
}
.privacy {
  border-top: 0;
  justify-content: flex-start;
  padding-top: 8px;
  margin-top: 21px;
  font-size: 12px;
}
.hero-art {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1.29;
  margin: 32px 0 0;
  user-select: none;
  pointer-events: none;
}
.hero-art:before {
  content: '';
  position: absolute;
  inset: 15% 7% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, #c2d4fa75, transparent 70%);
}
.hero-art > img,
.hero-art > svg,
.hero-brain,
.hero-label {
  position: absolute;
}
.hero-landscape {
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-student {
  width: 70%;
  height: 94%;
  left: 19%;
  bottom: 0;
  object-fit: contain;
  object-position: center bottom;
  clip-path: inset(0 0 3% 0 round 0 0 22% 22%);
  z-index: 2;
  --float-distance: -7px;
  --float-duration: 6s;
}
.hero-brain {
  width: 28%;
  aspect-ratio: 1;
  left: 12%;
  top: 1%;
  z-index: 3;
  --float-distance: -12px;
  --float-duration: 5s;
}
.hero-brain img {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 9px 9px #5467941a);
}
.brain-halo {
  position: absolute;
  inset: 30% 14% 5%;
  background: linear-gradient(145deg, #87c3ed, #3577c0);
  border-radius: 44% 54% 43% 50%;
  transform: rotate(-17deg);
}
.hero-laptop {
  width: 21%;
  height: auto;
  right: 0;
  top: 29%;
  rotate: 10deg;
  z-index: 3;
  --float-distance: -10px;
  --float-duration: 5.5s;
  animation-delay: -1.3s;
}
.hero-phone {
  width: 11%;
  height: auto;
  left: 12%;
  top: 45%;
  rotate: -18deg;
  --float-distance: -9px;
  --float-duration: 6s;
  animation-delay: -2s;
}
.hero-label {
  z-index: 4;
  padding: 8px 14px;
  border: 1px solid #e9ebf1;
  border-radius: 12px;
  color: var(--blue);
  background: #fffffff2;
  box-shadow: 0 4px 5px #20334f14;
  font-size: 12px;
  font-weight: 650;
  --float-distance: -5px;
  --float-duration: 6.5s;
}
.label-interest {
  left: 0;
  top: 18%;
  animation-delay: -1s;
}
.label-potential {
  right: 0;
  top: 7%;
  color: #db8b32;
  animation-delay: -3s;
}
.label-personality {
  left: 1%;
  bottom: 5%;
  color: #db8b32;
  animation-delay: -2s;
}
.label-major {
  right: 3%;
  bottom: 15%;
  animation-delay: -4s;
}
.float-layer {
  animation-name: hero-float;
  animation-duration: var(--float-duration, 6s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.hero-motion-control {
  max-width: 580px;
  display: flex;
  justify-content: flex-end;
  margin: 7px 0;
}
.hero-motion-control button {
  color: #75849c;
  background: #ffffff90;
  padding: 8px 12px;
  min-height: 38px;
  border: 1px solid #e5ebf5;
  border-radius: 20px;
  font-size: 10px;
}
.hero-motion-control button:before {
  content: 'Ⅱ';
  margin-right: 6px;
  color: var(--blue);
}
.illustration-paused .hero-motion-control button:before {
  content: '▷';
}
@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(var(--float-distance, -10px));
  }
}
.motion-paused .float-layer {
  animation-play-state: paused;
}

/* Responses to clicks are immediate; animation never gates navigation or answer saving. */
button,
a,
input,
select,
textarea {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    color 160ms ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #7596ee;
  background-color: #fff;
  box-shadow: 0 0 0 4px #3155d90b;
}
input[type='checkbox'],
input[type='radio'] {
  transition: box-shadow 180ms ease;
}
input[type='checkbox']:checked,
input[type='radio']:checked {
  box-shadow: 0 0 0 4px #3155d915;
}
.choice-card .iconbox,
.choice-card .arrow,
.btn .icon {
  transition:
    transform 220ms ease,
    background-color 180ms ease,
    color 180ms ease;
}
.choice-card {
  --interaction-accent: #3155d9;
  --interaction-shadow: #3155d92e;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 220ms ease;
}
.choice-card.institution {
  --interaction-accent: #ff9e16;
  --interaction-shadow: #c7812333;
}
.choice-card:is(:focus-visible, :active, .is-popping) {
  background: #fff;
  border-color: var(--interaction-accent);
  box-shadow:
    0 12px 25px -8px var(--interaction-shadow),
    0 3px 6px #20314c0c;
  outline-color: var(--interaction-accent);
}
.choice-card:is(:focus-visible, :active, .is-popping) .iconbox {
  background: var(--interaction-accent);
  color: #fff;
  transform: scale(1.06);
}
.choice-card:is(:focus-visible, :active, .is-popping) .arrow {
  color: var(--interaction-accent);
  transform: translateX(4px);
}
@media (hover: hover) {
  .choice-card:hover,
  .choice-card.institution:hover {
    background: #fff;
    border-color: var(--interaction-accent);
    box-shadow:
      0 12px 25px -8px var(--interaction-shadow),
      0 3px 6px #20314c0c;
  }
  .choice-card:hover .iconbox {
    background: var(--interaction-accent);
    color: #fff;
    transform: scale(1.06);
  }
  .choice-card:hover .arrow {
    color: var(--interaction-accent);
    transform: translateX(4px);
  }
  .btn:hover .icon:last-child {
    transform: translateX(3px);
  }
  .btn:not(:disabled):hover {
    box-shadow: 0 8px 18px -6px #3155d949;
  }
}
.is-popping {
  animation: control-pop 400ms cubic-bezier(0.22, 0.8, 0.3, 1);
}
.choice-card.is-popping {
  animation-name: card-pop;
}
@keyframes control-pop {
  0% {
    scale: 1;
  }
  25% {
    scale: 0.96;
  }
  58% {
    scale: 1.045;
  }
  100% {
    scale: 1;
  }
}
@keyframes card-pop {
  0% {
    scale: 1;
  }
  25% {
    scale: 0.985;
  }
  58% {
    scale: 1.018;
  }
  100% {
    scale: 1;
  }
}
/* Assessment targets stay in place while their surface acknowledges the press. */
.option.is-popping,
.question-nav button.is-popping,
.numpad button.is-popping {
  animation: answer-pop 360ms ease-out;
}
@keyframes answer-pop {
  0%,
  35% {
    box-shadow:
      inset 0 0 0 2px #7898ef,
      0 4px 10px #3155d924;
  }
  100% {
    box-shadow: inset 0 0 0 0 transparent;
  }
}
.option:active,
.question-nav button:active,
.numpad button:active {
  box-shadow: inset 0 0 0 2px #7898ef;
  background-color: #dbe6ff;
}
.interaction-pulse {
  position: fixed;
  z-index: 10000;
  display: block;
  border: 1.5px solid #4c7cf09c;
  border-radius: 50%;
  background: radial-gradient(circle, #8eaefa38, #b3cbff12 65%, transparent 70%);
  pointer-events: none;
  animation: click-bloom 420ms ease-out forwards;
}
@keyframes click-bloom {
  0% {
    transform: scale(0.35);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.hero h1,
.hero .lead,
.hero .chips,
.form-error:not(:empty) {
  animation: enter-soft 420ms ease-out both;
}
.auth-card,
dialog[open] {
  animation: panel-pop 440ms cubic-bezier(0.18, 0.8, 0.3, 1) both;
  transform-origin: center;
}
@keyframes panel-pop {
  0% {
    opacity: 0.2;
    scale: 0.95;
    translate: 0 9px;
  }
  70% {
    opacity: 1;
    scale: 1.008;
    translate: 0 -1px;
  }
  100% {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}
.hero .lead {
  animation-delay: 45ms;
}
.hero .chips {
  animation-delay: 90ms;
}
.auth-card {
  animation-duration: 500ms;
}
@keyframes enter-soft {
  from {
    opacity: 0.35;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 1050px) {
  .auth-nav .brand .divider {
    display: none;
  }
  .auth-grid {
    gap: 35px;
    padding-inline: 30px;
  }
  .auth-card {
    padding: 28px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .chip {
    padding: 9px 10px;
    font-size: 10px;
  }
  .hero-label {
    font-size: 10px;
    padding: 7px 10px;
  }
}
@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
    padding: 12px 24px 28px;
    gap: 25px;
    max-width: 560px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero .lead {
    font-size: 14px;
  }
  .hero-art {
    max-width: 400px;
    margin: 27px auto 0;
  }
  .hero-label {
    font-size: 11px;
  }
  .auth-card {
    border-radius: 28px;
  }
  .choice-card {
    padding: 22px 18px;
  }
  .choice-card h3 {
    font-size: 16px;
  }
  .choice-card p {
    font-size: 12px;
  }
  .auth-page.login .hero-art {
    display: none;
  }
  .auth-page.login .hero-motion-control {
    display: none;
  }
  .auth-page.login .hero h1 {
    font-size: 31px;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(29px, 8.8vw, 36px);
  }
  .chip {
    font-size: 9px;
    padding: 9px 8px;
  }
  .hero-label {
    font-size: 9px;
    padding: 7px 10px;
    border-radius: 10px;
  }
  .auth-card {
    padding: 25px;
  }
  .privacy {
    font-size: 10px;
  }
  .choice-card {
    gap: 12px;
    padding: 19px 15px;
  }
  .choice-card h3 {
    font-size: 15px;
  }
  .choice-card .arrow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .interaction-pulse {
    display: none;
  }
  .hero-motion-control {
    display: none;
  }
}
@media print {
  .float-layer {
    animation: none;
  }
  .interaction-pulse {
    display: none;
  }
}
