.franchise-portal-hero {
  position: relative;
  min-height: 590px;
  padding: 5.3rem 0 6.4rem;
  color: #fff;
  background:
    radial-gradient(circle at 84% 25%, rgba(255, 176, 32, 0.18), transparent 24%),
    linear-gradient(125deg, #05162c, #082c58 56%, #0b3fa8);
  overflow: hidden;
}

.portal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000 35%, transparent 92%);
}

.portal-glow {
  position: absolute;
  border: 1px solid rgba(255, 176, 32, 0.12);
  border-radius: 50%;
}

.portal-glow::before,
.portal-glow::after {
  position: absolute;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.portal-glow::before { inset: 55px; }
.portal-glow::after { inset: 110px; }

.portal-glow.glow-one {
  top: -210px;
  right: -160px;
  width: 560px;
  height: 560px;
}

.portal-glow.glow-two {
  bottom: -260px;
  left: -210px;
  width: 470px;
  height: 470px;
  border-color: rgba(85, 214, 255, 0.08);
}

.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 3.7rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
}

.portal-breadcrumb a {
  color: rgba(255, 255, 255, 0.68);
}

.portal-breadcrumb a:hover,
.portal-breadcrumb strong {
  color: #fff;
}

.portal-breadcrumb i {
  font-size: 0.55rem;
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--skiisy-orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-kicker > i {
  width: 30px;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
}

.franchise-portal-hero h1 {
  max-width: 760px;
  margin: 1rem 0 1.2rem;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.franchise-portal-hero h1::after {
  display: block;
  width: min(490px, 72%);
  height: 4px;
  margin-top: 1.2rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--skiisy-orange), #55d6ff, transparent);
  content: "";
}

.franchise-portal-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 1.75;
}

.portal-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.portal-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 650;
}

.portal-trust i {
  color: var(--skiisy-orange);
}

.portal-credential-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.portal-orbit {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 176, 32, 0.24);
  border-radius: 50%;
  animation: portal-orbit-spin 19s linear infinite;
}

.portal-orbit::before {
  position: absolute;
  top: 13%;
  left: 8%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--skiisy-orange);
  box-shadow: 0 0 20px var(--skiisy-orange);
  content: "";
}

.portal-orbit.orbit-two {
  inset: 20%;
  border-color: rgba(85, 214, 255, 0.21);
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 13s;
}

.portal-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.05);
}

.portal-dot.dot-one { top: 20%; right: 8%; }
.portal-dot.dot-two { right: 13%; bottom: 18%; }
.portal-dot.dot-three { bottom: 14%; left: 13%; }

.portal-card {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 260px;
  min-height: 315px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(5, 22, 44, 0.74);
  box-shadow: 0 30px 70px rgba(0, 8, 24, 0.38);
  transform: translate(-50%, -50%) translateZ(35px) rotate(-4deg);
  backdrop-filter: blur(18px);
}

.portal-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 176, 32, 0.16), transparent 50%);
  content: "";
  pointer-events: none;
}

.portal-card-label,
.portal-card strong,
.portal-card small {
  position: relative;
  display: block;
}

.portal-card-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-card-icon {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin: 2.15rem 0 1.35rem;
  color: #071a35;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--skiisy-orange), #ffd775);
  box-shadow: 0 16px 35px rgba(255, 176, 32, 0.22);
  font-size: 2rem;
}

.portal-card strong {
  color: #fff;
  font-size: 1.2rem;
}

.portal-card small {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.62rem;
}

.portal-card-line {
  position: relative;
  height: 1px;
  margin: 1.65rem 0 1.05rem;
  background: rgba(255, 255, 255, 0.11);
}

.portal-card-signal {
  position: relative;
  display: flex;
  align-items: end;
  gap: 5px;
  height: 28px;
}

.portal-card-signal i {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.33);
}

.portal-card-signal i:nth-child(1) { height: 42%; }
.portal-card-signal i:nth-child(2) { height: 80%; }
.portal-card-signal i:nth-child(3) { height: 55%; }
.portal-card-signal i:nth-child(4) { height: 100%; background: var(--skiisy-orange); }
.portal-card-signal i:nth-child(5) { height: 72%; }
.portal-card-signal i:nth-child(6) { height: 90%; }

.portal-status {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 17%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  color: var(--skiisy-text);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 8, 24, 0.25);
  font-size: 0.64rem;
  font-weight: 700;
  transform: translateZ(50px);
  animation: portal-status-float 4s ease-in-out infinite;
}

.portal-status i {
  color: #10b981;
  font-size: 1rem;
}

.portal-feature-strip {
  position: relative;
  z-index: 4;
  margin-top: -2.3rem;
}

.portal-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.65rem;
  border: 1px solid var(--skiisy-border);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(9, 32, 63, 0.11);
}

.portal-feature-grid > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--skiisy-border);
}

.portal-feature-grid > div:last-child {
  border-right: 0;
}

.portal-feature-grid > div > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #a96300;
  border-radius: 12px;
  background: #fff4d7;
}

.portal-feature-grid p,
.portal-feature-grid strong,
.portal-feature-grid small {
  display: block;
  margin: 0;
}

.portal-feature-grid strong {
  color: var(--skiisy-navy);
  font-size: 0.68rem;
}

.portal-feature-grid small {
  margin-top: 0.12rem;
  color: var(--skiisy-muted);
  font-size: 0.54rem;
}

.portal-login-section {
  background:
    radial-gradient(circle at 8% 34%, rgba(21, 94, 239, 0.05), transparent 23%),
    #f7f9fc;
}

.portal-login-shell {
  overflow: hidden;
  border: 1px solid var(--skiisy-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 75px rgba(9, 32, 63, 0.09);
}

.portal-login-intro {
  position: relative;
  height: 100%;
  min-height: 610px;
  padding: 3.5rem;
  color: #fff;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 176, 32, 0.18), transparent 27%),
    linear-gradient(145deg, #071a35, #0a2d5a);
  overflow: hidden;
}

.portal-login-intro::after {
  position: absolute;
  right: -150px;
  bottom: -180px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(255, 176, 32, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 65px rgba(255, 176, 32, 0.025),
    0 0 0 130px rgba(255, 176, 32, 0.015);
  content: "";
}

.portal-intro-number {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.055);
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 1;
}

.portal-login-intro h2 {
  position: relative;
  z-index: 1;
  max-width: 410px;
  margin: 1.2rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.portal-login-intro > p {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  line-height: 1.75;
}

.portal-login-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-top: 2.4rem;
}

.portal-login-steps > div {
  display: grid;
  align-items: center;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.portal-login-steps > div.active {
  border-color: rgba(255, 176, 32, 0.27);
  background: rgba(255, 176, 32, 0.07);
}

.portal-login-steps > div > span {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: rgba(255, 255, 255, 0.38);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
}

.portal-login-steps > div.active > span {
  color: #071a35;
  background: var(--skiisy-orange);
}

.portal-login-steps p,
.portal-login-steps strong,
.portal-login-steps small {
  display: block;
  margin: 0;
}

.portal-login-steps strong {
  color: #fff;
  font-size: 0.69rem;
}

.portal-login-steps small {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.56rem;
}

.portal-help-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.portal-help-note > i {
  color: var(--skiisy-orange);
}

.portal-help-note strong,
.portal-help-note small {
  display: block;
}

.portal-help-note strong {
  color: #fff;
  font-size: 0.65rem;
}

.portal-help-note small {
  max-width: 330px;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.56rem;
  line-height: 1.5;
}

.portal-form-panel {
  display: flex;
  min-height: 610px;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem clamp(2rem, 5vw, 5rem);
}

.portal-form-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.portal-form-heading > span {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  color: #a96300;
  border-radius: 17px;
  background: #fff4d7;
  font-size: 1.4rem;
}

.portal-form-heading small {
  display: block;
  color: #b86d00;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-form-heading h2 {
  margin: 0.2rem 0 0;
  color: var(--skiisy-navy);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.portal-form-heading p {
  margin: 0.4rem 0 0;
  color: var(--skiisy-muted);
  font-size: 0.65rem;
}

.portal-login-form .form-label {
  margin-bottom: 0.55rem;
  color: #34445d;
  font-size: 0.69rem;
  font-weight: 700;
}

.portal-login-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem 0.9rem;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  font-size: 0.68rem;
  font-weight: 700;
}

.portal-input-wrap {
  position: relative;
}

.portal-input-wrap > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 1rem;
  color: #8b99aa;
  transform: translateY(-50%);
}

.portal-input-wrap .form-control {
  min-height: 58px;
  padding: 0.8rem 3rem 0.8rem 2.85rem;
  color: var(--skiisy-text);
  border-color: #dce3ec;
  border-radius: 14px;
  background: #fbfcfe;
  font-size: 0.77rem;
}

.portal-input-wrap .form-control:focus {
  border-color: rgba(255, 176, 32, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.1);
}

.portal-input-wrap:focus-within > i {
  color: #b86d00;
}

.portal-password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0.75rem;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--skiisy-muted);
  border: 0;
  border-radius: 9px;
  background: transparent;
  transform: translateY(-50%);
}

.portal-password-toggle:hover {
  color: #a96300;
  background: #fff7e4;
}

.portal-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.66rem;
}

.portal-login-options label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--skiisy-muted);
}

.portal-login-options input {
  accent-color: var(--skiisy-primary);
}

.portal-login-options a {
  color: var(--skiisy-primary);
  font-weight: 700;
}

.portal-submit-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.75rem 0.8rem 1.35rem;
  color: #fff;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(105deg, var(--skiisy-primary), #0b3fa8);
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.22);
  font-size: 0.75rem;
  font-weight: 750;
}

.portal-submit-button:hover {
  color: #fff;
  transform: translateY(-2px);
}

.portal-submit-button > i {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
}

.portal-form-response {
  display: grid;
  align-items: start;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(255, 176, 32, 0.22);
  border-radius: 14px;
  background: #fff9eb;
  animation: portal-response-enter 0.35s ease both;
}

.portal-form-response[hidden] {
  display: none;
}

.portal-form-response > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #a96300;
  border-radius: 10px;
  background: #fff;
}

.portal-form-response strong {
  display: block;
  color: var(--skiisy-navy);
  font-size: 0.67rem;
}

.portal-form-response p {
  margin: 0.2rem 0 0;
  color: var(--skiisy-muted);
  font-size: 0.59rem;
  line-height: 1.55;
}

.portal-form-response button {
  color: var(--skiisy-muted);
  border: 0;
  background: transparent;
}

.portal-security-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.5rem;
  color: #8794a5;
}

.portal-security-note > i {
  color: #10b981;
  font-size: 0.72rem;
}

.portal-security-note p {
  margin: 0;
  font-size: 0.57rem;
  line-height: 1.55;
}

.portal-security-note strong {
  color: #56657a;
}

.portal-application-note {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding: 0.9rem;
  border: 1px solid var(--skiisy-border);
  border-radius: 14px;
  background: #f8fafc;
}

.portal-application-note > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--skiisy-primary);
  border-radius: 11px;
  background: #eaf1ff;
}

.portal-application-note small,
.portal-application-note strong {
  display: block;
}

.portal-application-note small {
  color: var(--skiisy-muted);
  font-size: 0.52rem;
}

.portal-application-note strong {
  margin-top: 0.13rem;
  color: var(--skiisy-navy);
  font-size: 0.65rem;
}

.portal-application-note > a {
  color: var(--skiisy-primary);
  font-size: 0.6rem;
  font-weight: 750;
}

.portal-support-strip {
  padding: 3.3rem 0;
  color: #fff;
  background: linear-gradient(105deg, #0b3fa8, #155eef);
}

.portal-support-strip span {
  color: #8edfff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-support-strip h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

@keyframes portal-status-float {
  50% { transform: translateY(-8px) translateZ(50px); }
}

@keyframes portal-response-enter {
  from { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 991.98px) {
  .franchise-portal-hero {
    min-height: auto;
    padding: 4.5rem 0 5.8rem;
  }

  .portal-breadcrumb {
    margin-bottom: 2.8rem;
  }

  .portal-credential-visual {
    width: min(370px, 90vw);
  }

  .portal-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-feature-grid > div:nth-child(2) {
    border-right: 0;
  }

  .portal-feature-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--skiisy-border);
  }

  .portal-login-intro {
    min-height: auto;
    padding: 3rem;
  }

  .portal-form-panel {
    min-height: 550px;
    padding: 3rem;
  }
}

@media (max-width: 767.98px) {
  .franchise-portal-hero {
    padding: 3.5rem 0 5rem;
  }

  .portal-breadcrumb {
    margin-bottom: 2.2rem;
  }

  .franchise-portal-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .franchise-portal-hero p {
    font-size: 0.86rem;
  }

  .portal-trust span {
    width: 100%;
  }

  .portal-credential-visual {
    width: min(330px, 90vw);
  }

  .portal-card {
    width: 220px;
    min-height: 280px;
  }

  .portal-card-icon {
    width: 64px;
    height: 64px;
    margin-top: 1.75rem;
  }

  .portal-feature-strip {
    margin-top: -1.8rem;
  }

  .portal-feature-grid {
    grid-template-columns: 1fr;
  }

  .portal-feature-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--skiisy-border);
  }

  .portal-feature-grid > div:last-child {
    border-bottom: 0;
  }

  .portal-login-shell {
    border-radius: 22px;
  }

  .portal-login-intro,
  .portal-form-panel {
    padding: 2.2rem 1.4rem;
  }

  .portal-login-intro h2 {
    font-size: 2.15rem;
  }

  .portal-form-panel {
    min-height: auto;
  }

  .portal-application-note {
    grid-template-columns: auto 1fr;
  }

  .portal-application-note > a {
    grid-column: 1 / -1;
    padding-left: 3.3rem;
  }

  .portal-support-strip {
    text-align: center;
  }
}

@media (max-width: 419.98px) {
  .portal-credential-visual {
    width: 290px;
  }

  .portal-status {
    right: -2%;
  }

  .portal-login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-orbit,
  .portal-status {
    animation: none;
  }

  .portal-credential-visual {
    transition: none;
  }
}
