/* HV_LOGIN_VISUAL_V1 — scoped login and confirmed-arrival presentation. */

.hvl-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #070f1e;
  color: #eef4ff;
  color-scheme: dark;
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

.hvl-page *, .hvl-welcome * { box-sizing: border-box; }
.hvl-page svg, .hvl-welcome svg { display: block; }
.hvl-page a { text-decoration: none; }
.hvl-page button, .hvl-page input { font-family: inherit; }

.hvl-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 76%,#12377270,transparent 42%),
    radial-gradient(ellipse at 94% 20%,#132a5038,transparent 45%);
}

.hvl-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #4296ff;
  opacity: .15;
}

.hvl-network-nodes {
  animation: hvl-network-breathe 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 5px #3e94ff);
}

.hvl-orbit {
  position: absolute;
  width: 145%;
  height: 78%;
  left: -25%;
  top: 51%;
  border-top: 1px solid #3d90ff40;
  border-radius: 50%;
  transform: rotate(-19deg);
  box-shadow: 0 -7px 26px -16px #5eabff;
  opacity: .6;
}

.hvl-horizon {
  position: absolute;
  inset: 58% 35% -24% -30%;
  border-radius: 50%;
  background: linear-gradient(176deg,#1c447d30,transparent 30%);
  border-top: 1px solid #80b9ff17;
  transform: rotate(14deg);
}

.hvl-header, .hvl-main, .hvl-footer {
  width: min(1280px,100%);
  margin-inline: auto;
}

.hvl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 44px 20px;
}

.hvl-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #f5f8ff;
}

.hvl-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: none;
}

.hvl-brand strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -.8px;
}

.hvl-brand span span {
  display: block;
  margin-top: 4px;
  color: #90a7c8;
  font-size: 12px;
}

.hvl-header-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #889dbb;
}

.hvl-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #619eff;
  box-shadow: 0 0 12px #377cff80;
}

.hvl-main {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.9fr);
  align-items: center;
  gap: 74px;
  padding: 22px 44px 34px;
}

.hvl-hero { min-width: 0; }

.hvl-eyebrow {
  margin: 0 0 20px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
  color: #7b98bf;
}

.hvl-hero h1 {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(46px,4.4vw,67px);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.12;
}

.hvl-hero h1 span {
  color: #5896ff;
  background: linear-gradient(100deg,#6ca8ff,#3074f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hvl-lead {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: #9bafcc;
}

.hvl-mobile-break { display: none; }

.hvl-character {
  --hvl-head-x: 0px;
  --hvl-head-y: 0px;
  --hvl-head-r: 0deg;
  --hvl-eye-x: 0px;
  --hvl-eye-y: 0px;
}

.hvl-scene {
  position: relative;
  width: min(430px,100%);
  margin: 4px auto -6px;
  user-select: none;
}

.hvl-robot {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 20px #02081780);
}

.hvl-robot-halo {
  position: absolute;
  inset: 12% -5% 1%;
  background: radial-gradient(ellipse,#2573ff1a,transparent 65%);
  pointer-events: none;
}

.hvl-robot-note {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .025em;
  color: #7f9bc3;
}

.hvl-bot-hover { animation: hvl-float 5s ease-in-out infinite; }

.hvl-head {
  transform-origin: 250px 210px;
  transform: translate(var(--hvl-head-x),var(--hvl-head-y)) rotate(var(--hvl-head-r));
  transition: transform .16s ease-out;
}

.hvl-eyes {
  transform: translate(var(--hvl-eye-x),var(--hvl-eye-y));
  transition: transform .12s ease-out;
}

.hvl-eye-open {
  transform-origin: 250px 146px;
  animation: hvl-blink 6.2s infinite;
}

.hvl-eye-happy { opacity: 0; }

.hvl-cover-arms {
  opacity: 0;
  transform: translateY(98px);
  transition: transform .45s cubic-bezier(.2,.7,.2,1),opacity .22s;
}

.hvl-idle-arms, .hvl-idle-right { transition: opacity .2s; }

.hvl-thumb-arm {
  opacity: 0;
  transform: translateY(34px) rotate(12deg);
  transform-origin: 338px 283px;
  transition: transform .5s cubic-bezier(.2,.75,.2,1),opacity .2s;
}

.hvl-sparkles { opacity: 0; }
.hvl-blush { transition: opacity .25s; }

.hvl-character[data-state="privacy"] .hvl-cover-arms,
.hvl-character[data-state="error"] .hvl-cover-arms {
  opacity: 1;
  transform: translateY(0);
}

.hvl-character[data-state="privacy"] .hvl-idle-arms,
.hvl-character[data-state="error"] .hvl-idle-arms { opacity: 0; }

.hvl-character[data-state="privacy"] .hvl-head {
  transform: translateY(3px) rotate(-3deg);
}

.hvl-character[data-state="error"] .hvl-head {
  transform: translateY(7px) rotate(-7deg);
}

.hvl-character[data-state="error"] .hvl-blush { opacity: .75; }
.hvl-character[data-state="error"] .hvl-antenna { fill: #ff8caa; }
.hvl-character[data-state="error"] .hvl-robot-note { color: #e3a2b6; }

.hvl-character[data-state="thinking"] .hvl-head {
  transform: rotate(5deg);
}

.hvl-character[data-state="thinking"] .hvl-chest-light {
  animation: hvl-network-breathe 1s ease-in-out infinite alternate;
}

.hvl-character[data-state="success"] .hvl-thumb-arm {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hvl-character[data-state="success"] .hvl-idle-right,
.hvl-character[data-state="success"] .hvl-eye-open { opacity: 0; }

.hvl-character[data-state="success"] .hvl-eye-happy { opacity: 1; }

.hvl-character[data-state="success"] .hvl-sparkles {
  opacity: 1;
  animation: hvl-sparkle 1.6s ease-in-out infinite;
}

.hvl-character[data-state="success"] .hvl-antenna { fill: #6ee7bd; }

.hvl-form-column { min-width: 0; }

.hvl-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 38px 34px 26px;
  background: linear-gradient(145deg,#111d30e8,#0b1425f5);
  border: 1px solid #314a6b;
  border-radius: 22px;
  box-shadow: 0 28px 80px #00000030,inset 0 1px 0 #a1c5ff08;
}

.hvl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg,transparent,#6bafff85,transparent);
}

.hvl-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 21px;
  color: #90b6ed;
  font-size: 11px;
  font-weight: 650;
}

.hvl-card-kicker svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hvl-card h2 {
  margin: 0;
  color: #f2f6ff;
  font-size: clamp(26px,2.4vw,33px);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.22;
}

.hvl-form-intro {
  margin: 12px 0 31px;
  color: #91a7c9;
  font-size: 14px;
  line-height: 1.65;
}

.hvl-form { display: grid; gap: 21px; }

.hvl-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 550;
  color: #c3cfe1;
}

.hvl-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #354b6c;
  border-radius: 11px;
  background: #080f1b88;
  transition: border-color .2s,box-shadow .2s,background .2s;
}

.hvl-input-wrap:focus-within {
  border-color: #6aa5ff;
  background: #0b1526;
  box-shadow: 0 0 0 3px #347bff1a;
}

.hvl-input-wrap > svg {
  position: absolute;
  left: 16px;
  width: 19px;
  height: 19px;
  color: #829cc0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  pointer-events: none;
}

.hvl-page .hvl-input-wrap input {
  display: block;
  min-width: 0;
  width: 100%;
  height: 54px;
  padding: 0 15px 0 47px;
  border: 0;
  border-radius: 11px;
  outline: none;
  background: transparent;
  color: #eff5ff;
  font-size: 14px;
  line-height: normal;
  box-shadow: none;
}

.hvl-page .hvl-input-wrap input[type="password"],
.hvl-page #hvlPassword { padding-right: 55px; }

.hvl-input-wrap input::placeholder { color: #6e86a8; opacity: 1; }

.hvl-input-wrap input:-webkit-autofill {
  -webkit-text-fill-color: #eff5ff;
  caret-color: #eff5ff;
  box-shadow: 0 0 0 1000px #0b1526 inset;
}

.hvl-reveal {
  position: absolute;
  right: 5px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8ca6cb;
  cursor: pointer;
}

.hvl-reveal:hover { background: #ffffff08; color: #d5e6ff; }

.hvl-reveal svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hvl-eye-slash { opacity: 0; }
.hvl-reveal[aria-pressed="true"] .hvl-eye-slash { opacity: 1; }

.hvl-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  margin-top: 5px;
  padding: 13px 22px;
  border: 1px solid #5789ff50;
  border-radius: 11px;
  background: linear-gradient(110deg,#2574ff,#2b5def);
  color: #fff;
  box-shadow: 0 8px 25px #1b5ce72b;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s,transform .18s,box-shadow .18s;
}

.hvl-submit:hover {
  background: linear-gradient(110deg,#4187ff,#3970fa);
  box-shadow: 0 10px 30px #1b5ce748;
  transform: translateY(-1px);
}

.hvl-submit:active { transform: translateY(0); }

.hvl-submit svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hvl-submit:disabled { cursor: wait; transform: none; opacity: .8; }

.hvl-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff45;
  border-top-color: #fff;
  border-radius: 50%;
  animation: hvl-spin .7s linear infinite;
}

.hvl-form[aria-busy="true"] .hvl-spinner { display: block; }
.hvl-form[aria-busy="true"] .hvl-submit-arrow { display: none; }

.hvl-access-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px 0 0;
  color: #8b9fbe;
  font-size: 10.5px;
  line-height: 1.65;
  text-align: center;
}

.hvl-access-note svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hvl-help {
  margin: 19px 0 0;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  color: #6f87aa;
}

.hvl-help span { color: #9bb0cd; }

.hvl-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -9px 0 22px;
  padding: 12px 13px;
  border: 1px solid #f59cba40;
  border-radius: 10px;
  background: #b22f5317;
  color: #ffc4d4;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hvl-error svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.hvl-card.hvl-shake { animation: hvl-shake .42s ease-out; }

.hvl-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 44px 24px;
  color: #6b82a5;
  font-size: 10px;
  letter-spacing: .025em;
}

.hvl-footer > span:first-child { color: #8298b8; font-weight: 650; }

.hvl-page :is(a,button):focus-visible {
  outline: 2px solid #91bdff;
  outline-offset: 5px;
}

.hvl-page input:focus-visible { outline: none; }
.hvl-is-paused * { animation-play-state: paused !important; }

.hvl-welcome {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 86px 1fr 24px;
  align-items: center;
  gap: 6px;
  width: min(348px,calc(100vw - 32px));
  padding: 8px 13px 8px 6px;
  border: 1px solid #49765f;
  border-radius: 18px;
  background: #101d2af5;
  color: #edf7ff;
  box-shadow: 0 15px 55px #00000038;
  animation: hvl-arrive .35s ease-out;
  color-scheme: dark;
}

.hvl-welcome[hidden] { display: none !important; }
.hvl-welcome strong { display: block; font-size: 14px; font-weight: 650; }
.hvl-welcome p { margin: 4px 0 0; font-size: 11px; color: #9fb8c9; }

.hvl-welcome button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9db3c6;
  font-size: 21px;
  cursor: pointer;
}

.hvl-welcome button:hover { background: #ffffff0c; color: #fff; }
.hvl-welcome .hvl-robot { width: 86px; filter: none; }
.hvl-welcome .hvl-bot-hover { animation: none; }
.hvl-welcome :focus-visible { outline: 2px solid #91bdff; outline-offset: 3px; }

@keyframes hvl-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes hvl-blink {
  0%,42%,46%,100% { transform: scaleY(1); }
  44% { transform: scaleY(.08); }
}

@keyframes hvl-network-breathe {
  from { opacity: .45; }
  to { opacity: 1; }
}

@keyframes hvl-spin { to { transform: rotate(360deg); } }

@keyframes hvl-sparkle {
  0%,100% { opacity: .45; }
  50% { opacity: 1; }
}

@keyframes hvl-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

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

@media (min-width:1000px) and (max-height:800px) {
  .hvl-header { padding-top: 24px; }
  .hvl-main { gap: 62px; padding-top: 8px; padding-bottom: 15px; }
  .hvl-eyebrow { margin-bottom: 14px; }
  .hvl-hero h1 { font-size: 52px; }
  .hvl-lead { margin-top: 13px; font-size: 15px; }
  .hvl-scene { width: 340px; }
  .hvl-card { padding-top: 30px; }
  .hvl-footer { padding-bottom: 16px; }
}

@media (max-width:1000px) {
  .hvl-header { padding-inline: 30px; }
  .hvl-main { gap: 35px; padding-inline: 30px; }
  .hvl-hero h1 { font-size: 46px; }
  .hvl-eyebrow { font-size: 9px; letter-spacing: .11em; }
  .hvl-lead { font-size: 14px; }
  .hvl-card { padding: 30px 25px 24px; }
  .hvl-form-intro { font-size: 13px; }
  .hvl-footer { padding-inline: 30px; }
}

@media (max-width:760px) {
  .hvl-header { padding: 23px 24px 8px; }
  .hvl-header-note { display: none; }
  .hvl-brand strong { font-size: 23px; }
  .hvl-brand img { width: 37px; height: 37px; }
  .hvl-brand span span { font-size: 10px; }

  .hvl-main {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
    max-width: 490px;
    padding: 0 24px 24px;
  }

  .hvl-hero-copy { display: none; }
  .hvl-scene { width: 162px; margin: 0 auto -3px; }
  .hvl-robot-note { display: none; }
  .hvl-card { padding: 28px 27px 25px; border-radius: 19px; }
  .hvl-card h2 { font-size: 30px; }
  .hvl-card-kicker { margin-bottom: 15px; }
  .hvl-form-intro { margin-bottom: 26px; }
  .hvl-footer { padding: 0 24px 20px; }
  .hvl-welcome { right: 16px; bottom: 16px; }
  .hvl-orbit { width: 240%; left: -100%; top: 43%; }
  .hvl-network { opacity: .11; }
  .hvl-page .hvl-input-wrap input { font-size: 16px; }
}

@media (max-width:380px) {
  .hvl-header { padding-inline: 18px; }
  .hvl-main { padding-inline: 16px; }
  .hvl-card { padding-inline: 22px; }
  .hvl-card h2 { font-size: 27px; }
  .hvl-form-intro { font-size: 12px; }
  .hvl-brand span span { font-size: 9px; }
  .hvl-scene { width: 136px; }
  .hvl-access-note { font-size: 9px; }
  .hvl-footer { padding-inline: 18px; }
}

@media (prefers-reduced-motion:reduce) {
  .hvl-page *, .hvl-welcome * {
    animation: none !important;
    transition: none !important;
  }
  .hvl-head, .hvl-eyes { transform: none; }
  .hvl-submit:hover { transform: none; }
}
