/* Integration skin for the existing pioneer-login-hero portal. */
.auth-gate.portal-login-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #102437;
  color: #f4fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.auth-gate.portal-login-gate::before {
  display: none;
}

.auth-gate.portal-login-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portal-login-gate *,
.portal-login-gate *::before,
.portal-login-gate *::after {
  box-sizing: border-box;
}

.portal-login-gate button,
.portal-login-gate input,
.portal-login-gate textarea {
  font: inherit;
}

.portal-login-gate .hero {
  --bg-x: 0px;
  --bg-y: 0px;
  --fg-x: 0px;
  --fg-y: 0px;
  position: relative;
  min-height: 100svh;
  background: #102437;
}

.portal-login-gate .hero__stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #102437;
}

.portal-login-gate .hero__layer {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: 56% center;
  filter: brightness(1.08) saturate(1.04);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.portal-login-gate .hero__bg {
  z-index: 1;
  transform: translate3d(var(--bg-x), var(--bg-y), 0) scale(1.03);
}

.portal-login-gate .hero__fg {
  z-index: 2;
  transform: translate3d(var(--fg-x), var(--fg-y), 0) scale(1.03);
}

.portal-login-gate .hero__interface {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center end;
  padding: clamp(24px, 7vw, 104px);
  pointer-events: none;
}

.portal-login-gate .auth-card {
  --panel-clip-path: inset(18px round 8px);
  position: relative;
  isolation: isolate;
  width: min(430px, calc(100vw - 40px));
  padding: clamp(22px, 3vw, 30px);
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  text-align: initial;
}

.portal-login-gate .auth-card.shake {
  animation: portalLoginShake 0.4s;
}

@keyframes portalLoginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.portal-login-gate .auth-card__surface {
  position: absolute;
  inset: -18px;
  z-index: 0;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.18), rgb(36 82 133 / 0.17) 38%, rgb(5 18 34 / 0.3)),
    rgb(7 22 40 / 0.15);
  box-shadow:
    0 28px 80px rgb(1 7 14 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.34),
    inset 0 -1px 0 rgb(255 255 255 / 0.1);
  clip-path: var(--panel-clip-path);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  pointer-events: none;
  will-change: clip-path;
}

.portal-login-gate .auth-card__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgb(255 255 255 / 0.16) 22%, transparent 44%),
    radial-gradient(circle at 20% 0%, rgb(255 175 162 / 0.22), transparent 34%),
    radial-gradient(circle at 100% 30%, rgb(111 194 255 / 0.2), transparent 36%);
  opacity: 0.42;
  mix-blend-mode: screen;
}

.portal-login-gate .auth-card__elastic-border {
  position: absolute;
  inset: -18px;
  z-index: 1;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  overflow: visible;
  pointer-events: none;
}

.portal-login-gate .auth-card__elastic-border path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-login-gate .auth-card__elastic-border-fill {
  fill: rgb(105 174 232 / 0.09);
  stroke: none;
}

.portal-login-gate .auth-card__elastic-border-seal {
  fill: none;
  stroke: rgb(92 166 225 / 0.2);
  stroke-width: 5.5;
}

.portal-login-gate .auth-card__elastic-border-glow {
  fill: none;
  stroke: rgb(141 220 255 / 0.22);
  stroke-width: 4;
}

.portal-login-gate .auth-card__elastic-border-line {
  fill: none;
  stroke: rgb(230 248 255 / 0.62);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 5px rgb(143 219 255 / 0.18));
}

.portal-login-gate .auth-card > :not(.auth-card__surface):not(.auth-card__elastic-border) {
  position: relative;
  z-index: 2;
}

.portal-login-gate .auth-card__header {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 26px;
  text-align: center;
}

.portal-login-gate .auth-card__mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(240 250 255 / 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 38%, rgb(255 172 154 / 0.95) 41% 46%, transparent 48%),
    linear-gradient(135deg, rgb(113 203 255 / 0.42), rgb(255 143 132 / 0.46));
  box-shadow:
    0 0 32px rgb(255 151 136 / 0.34),
    inset 0 0 18px rgb(255 255 255 / 0.18);
}

.portal-login-gate .auth-card h1 {
  margin: 0;
  font-family: "SF Pro Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 0.95;
  font-weight: 780;
  letter-spacing: 0;
  color: #f4fbff;
  overflow-wrap: anywhere;
}

.portal-login-gate .auth-form {
  display: grid;
  gap: 15px;
}

.portal-login-gate .auth-form label {
  display: grid;
  gap: 7px;
}

.portal-login-gate .auth-form span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(226 244 255 / 0.78);
}

.portal-login-gate .auth-form input {
  width: 100%;
  border: 1px solid rgb(221 246 255 / 0.22);
  border-radius: 8px;
  background: rgb(1 11 24 / 0.26);
  color: #f8fcff;
  outline: none;
  padding: 14px 15px;
  text-align: left;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 10px 24px rgb(0 6 16 / 0.08);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portal-login-gate .auth-form input::placeholder {
  color: rgb(220 240 255 / 0.44);
}

.portal-login-gate .auth-form input:focus {
  border-color: rgb(255 181 166 / 0.82);
  background: rgb(2 13 28 / 0.38);
  box-shadow:
    0 0 0 3px rgb(255 151 136 / 0.16),
    0 14px 32px rgb(0 8 20 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.1);
  transform: translateY(-1px);
}

.portal-login-gate .auth-submit {
  --btn-pull-x: 0px;
  --btn-pull-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 50px;
  border: 1px solid rgb(255 255 255 / 0.42);
  border-radius: 8px;
  margin-top: 4px;
  color: #07101b;
  background: linear-gradient(135deg, #ffb4a4, #8bd8ff 96%);
  font-family: "SF Pro Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 16px 38px rgb(255 151 136 / 0.26),
    inset 0 1px 0 rgb(255 255 255 / 0.58),
    inset 0 -1px 0 rgb(0 24 42 / 0.18);
  transform: translate3d(var(--btn-pull-x), var(--btn-pull-y), 0);
  transition: transform 170ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, border-color 180ms ease;
}

.portal-login-gate .auth-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgb(255 255 255 / 0.24) 38%, transparent 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.portal-login-gate .auth-submit:hover {
  border-color: rgb(255 255 255 / 0.68);
  box-shadow:
    0 20px 48px rgb(255 151 136 / 0.32),
    0 0 34px rgb(139 216 255 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.64),
    inset 0 -1px 0 rgb(0 24 42 / 0.2);
}

.portal-login-gate .auth-submit:hover::before {
  opacity: 1;
}

.portal-login-gate .auth-submit:active {
  transform: translate3d(var(--btn-pull-x), calc(var(--btn-pull-y) + 1px), 0) scale(0.995);
}

.portal-login-gate .auth-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: rgb(247 252 255 / 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.portal-login-gate .auth-status.show {
  color: rgb(255 190 176 / 0.95);
}

.portal-login-gate .auth-card--success .auth-status {
  color: rgb(174 229 255 / 0.95);
}

@media (max-width: 900px) {
  .portal-login-gate .hero__layer {
    object-position: 58% center;
  }

  .portal-login-gate .hero__interface {
    place-items: end center;
    padding: 24px 20px 12svh;
  }

  .portal-login-gate .auth-card {
    width: min(440px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-login-gate .hero__layer {
    transform: scale(1.03);
  }

  .portal-login-gate .auth-card,
  .portal-login-gate .auth-submit {
    transform: none;
    transition: none;
  }

  .portal-login-gate .auth-card__elastic-border {
    display: none;
  }
}
