.portal-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #0c0c10;
}
.portal-page > .subpage-header { margin-bottom: 0; }
.portal-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: calc(100svh - 154px);
  overflow: hidden;
  margin-top: -24px;
  padding: 76px 16px 48px;
}
.portal-landscape {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}
.portal-shell::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,#0c0c10 1%,#0c0c1020 35%,#0c0c1066 68%,#0c0c10 100%), radial-gradient(ellipse at center,#110d1c95,transparent 72%);
}
.portal-account .portal-landscape { object-position: 68% center; }
.portal-account .portal-shell::before {
  background: linear-gradient(180deg,#0c0c10 0%,#0c0c1033 38%,#0c0c1080 75%,#0c0c10 100%), radial-gradient(ellipse at center,#110d1ca0,transparent 80%);
}
.download-intro {
  width: min(100%,840px);
  text-align: center;
}
.download-intro h1 {
  font-size: clamp(36px,6.7vw,88px);
  line-height: .99;
  letter-spacing: -.071em;
  color: #fff;
  text-shadow: 0 8px 60px #08070d90;
}
.download-intro h1 span { display:block; }
.download-intro > p {
  margin: 18px 0 29px;
  font-size: clamp(15px,2vw,19px);
  color: #f1e9f7;
  text-shadow: 0 2px 18px #08070dee;
}
.download-tile,.portal-page .account-panel {
  width: min(100%,410px);
  margin-inline: auto;
  padding: 25px;
  border: 1px solid #d5beee52;
  border-radius: 20px;
  background: linear-gradient(145deg,#21192eec,#110e19f5);
  box-shadow: 0 22px 70px #08050cac,inset 0 1px #f3e2ff12;
  backdrop-filter: blur(18px) saturate(130%);
}
.download-product-label {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
}
.download-product-label img { width: 37px; height: auto; }
.download-product-label strong { display: block; color: #fff; font-size: 16px; }
.download-product-label span { display: block; margin-top: 2px; color: #cec1da; font-size: 13px; }
.portal-page .portal-primary {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  justify-content: center;
  overflow: hidden;
  min-height: 49px;
  padding: 12px 16px;
  border: 1px solid #d0abff74;
  border-radius: 11px;
  background: linear-gradient(115deg,#8e59d0,#6c42ad);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  box-shadow: inset 0 1px #fff3,0 7px 23px #260f4560;
  transition: transform .22s var(--ease),box-shadow .22s var(--ease);
}
.portal-page .portal-primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(112deg,transparent 34%,#f1d6ff45 49%,transparent 65%);
  transform: translateX(-105%);
  pointer-events: none;
}
.portal-page .portal-primary:hover { transform: translateY(-2px); box-shadow: 0 11px 29px #4f277f9a; }
.portal-page .portal-primary:hover::before,.portal-page .portal-primary:focus-visible::before { animation: portal-button-shine .68s ease forwards; }
.portal-page .portal-primary:active { transform: scale(.985); }
.portal-page .download-file { margin-top: 19px; }
.portal-file-info { margin-top: 11px; color: #cbbdd6; font-size: 12px; }
.portal-page .account-panel {
  text-align: left;
  padding: 28px;
}
.account-panel-mark {
  width: 48px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 12px #8750c55c);
}
.portal-page #auth-view h2,.portal-page #auth-view .account-subtitle { text-align: center; }
.portal-page .account-panel h2 { font-size: clamp(25px,3.4vw,34px); color: #fff; }
.portal-page .account-subtitle { font-size: 13px; color: #cdbfd9; line-height: 1.5; margin-top: 8px; }
.portal-page .account-tabs {
  background: #100d18;
  border-color: #e9cdff29;
  margin: 19px 0 0;
  border-radius: 9px;
}
.portal-page .account-tabs button { font-size: 13px; }
.portal-page .account-tabs > span { background: #35254a; }
.portal-page .account-field label { font-size: 14px; }
.portal-page .account-field input { min-height: 43px; border-radius: 9px; background: #14101c; font-size: 16px; }
.portal-page .account-submit { width: 100%; }
.portal-footer {
  width: min(calc(100% - 48px),1120px);
  margin: 0 auto;
  padding: 15px 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 20px;
  color: #b5a9c0;
  font-size: 12px;
}
@keyframes portal-button-shine { to { transform: translateX(105%); } }
@media (prefers-reduced-motion: no-preference) {
  .portal-landscape { animation: portal-framing 1.4s var(--ease) both; }
  .download-intro,.portal-page .account-panel { animation: portal-rise .65s var(--ease) both; }
  .download-tile { animation: portal-rise .68s .12s var(--ease) both; }
  .is-loading .portal-landscape,.is-loading .download-intro,.is-loading .download-tile,.is-loading .portal-page .account-panel { animation-play-state: paused; }
  @keyframes portal-framing { from { transform: scale(1.06); } to { transform: none; } }
  @keyframes portal-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 600px) {
  .portal-shell { min-height: calc(100svh - 130px); padding: 54px 16px 34px; }
  .download-tile,.portal-page .account-panel { padding: 22px; border-radius: 17px; }
  .portal-landscape { object-position: 57% center; }
  .portal-account .portal-landscape { object-position: 66% center; }
  .portal-footer { width: calc(100% - 36px); font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-page .portal-primary,.portal-page .account-tabs > span { transition: none; }
  .portal-page .portal-primary:hover::before,.portal-page .portal-primary:focus-visible::before { animation: none; }
}
