:root {
  --plm-account-bg: #020406;
  --plm-account-bg-deep: #010203;
  --plm-account-surface: #090d10;
  --plm-account-surface-raised: #0d1216;
  --plm-account-text: #f7f9fa;
  --plm-account-muted: #a8b2b8;
  --plm-account-muted-strong: #c8d0d4;
  --plm-account-line: rgba(226, 237, 242, 0.12);
  --plm-account-line-strong: rgba(226, 237, 242, 0.2);
  --plm-account-blue: #1bbcff;
  --plm-account-blue-soft: rgba(27, 188, 255, 0.15);
  --plm-account-danger: #ff7777;
  --plm-account-success: #75dca4;
  --plm-account-header-height: 68px;
  --plm-account-radius: 10px;
  --plm-account-ease: cubic-bezier(0.22, 0.82, 0.28, 1);
}

html {
  color-scheme: dark;
}

.plm-account-page {
  min-width: 320px;
  min-height: 100svh;
  overflow-x: clip;
  background:
    radial-gradient(70% 72% at 18% 48%, rgba(32, 103, 130, 0.105), transparent 68%),
    linear-gradient(118deg, #020406 0%, #030608 52%, #010203 100%);
  color: var(--plm-account-text);
  font-family: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.plm-account-page *,
.plm-account-page *::before,
.plm-account-page *::after {
  box-sizing: border-box;
}

.plm-account-page a {
  color: inherit;
}

.plm-account-page button,
.plm-account-page input,
.plm-account-page textarea,
.plm-account-page select {
  font: inherit;
}

.plm-account-page [hidden] {
  display: none !important;
}

.plm-account-header {
  position: relative;
  z-index: 20;
  min-height: var(--plm-account-header-height);
  border-bottom: 1px solid var(--plm-account-line);
  background: rgba(2, 4, 6, 0.72);
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
}

.plm-account-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1600px);
  min-height: var(--plm-account-header-height);
  margin-inline: auto;
  gap: 24px;
}

.plm-account-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--plm-account-text);
  text-decoration: none;
  gap: 11px;
}

.plm-account-brand img {
  width: 44px;
  height: 34px;
  flex: 0 0 44px;
  object-fit: contain;
}

.plm-account-brand-name {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plm-account-brand-context {
  min-height: 24px;
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #dbe3e6;
  font-size: 0.78rem;
  font-weight: 600;
}

.plm-account-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--plm-account-muted-strong);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

.plm-account-back:hover {
  color: #fff;
}

.plm-account-main {
  position: relative;
  min-height: calc(100svh - var(--plm-account-header-height));
}

.plm-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
  width: min(100%, 1720px);
  min-height: calc(100svh - var(--plm-account-header-height));
  margin-inline: auto;
}

.plm-account-product,
.plm-account-access {
  position: relative;
  min-width: 0;
}

.plm-account-product {
  display: flex;
  align-items: center;
  padding: clamp(64px, 7vw, 124px) clamp(40px, 7vw, 132px);
  overflow: hidden;
}

.plm-account-product::before {
  position: absolute;
  width: min(58vw, 820px);
  aspect-ratio: 1;
  left: -24%;
  top: 18%;
  border-radius: 50%;
  background: rgba(61, 157, 193, 0.055);
  filter: blur(80px);
  content: "";
  pointer-events: none;
}

.plm-account-product-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin-inline: auto;
}

.plm-account-eyebrow {
  margin: 0 0 22px;
  color: var(--plm-account-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.plm-account-product h1 {
  max-width: 720px;
  margin: 0;
  color: #f4f7f8;
  font-size: clamp(3.65rem, 6.1vw, 7.4rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-wrap: balance;
}

.plm-account-product h1 span {
  display: block;
  color: #87939a;
}

.plm-account-product-copy {
  max-width: 510px;
  margin: 28px 0 0;
  color: var(--plm-account-muted);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.6;
}

.plm-account-ecosystem {
  display: grid;
  width: min(100%, 650px);
  margin-top: clamp(48px, 6.5vh, 76px);
  gap: 8px;
}

.plm-account-product-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(226, 237, 242, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
  color: #cbd3d7;
  gap: 13px;
}

.plm-account-product-row::before {
  position: absolute;
  width: 1px;
  height: 9px;
  left: 30px;
  top: -9px;
  background: rgba(255, 255, 255, 0.11);
  content: "";
}

.plm-account-product-row:first-child::before {
  display: none;
}

.plm-account-product-row.is-current {
  border-color: rgba(27, 188, 255, 0.2);
  background: linear-gradient(90deg, rgba(27, 188, 255, 0.075), rgba(255, 255, 255, 0.025));
  color: #f5f8f9;
}

.plm-account-product-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0b1013;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plm-account-product-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.plm-account-product-label {
  min-width: 0;
}

.plm-account-product-label strong,
.plm-account-product-label span {
  display: block;
}

.plm-account-product-label strong {
  font-size: 0.88rem;
  font-weight: 680;
}

.plm-account-product-label span {
  overflow: hidden;
  margin-top: 2px;
  color: #7f8b91;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plm-account-product-state {
  display: inline-flex;
  align-items: center;
  color: #8e999f;
  font-size: 0.7rem;
  font-weight: 650;
  gap: 7px;
  white-space: nowrap;
}

.plm-account-product-state::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f7a80;
  content: "";
}

.plm-account-product-row.is-current .plm-account-product-state {
  color: #c8ecfa;
}

.plm-account-product-row.is-current .plm-account-product-state::before {
  background: var(--plm-account-blue);
  box-shadow: 0 0 12px rgba(27, 188, 255, 0.5);
}

.plm-account-access {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(52px, 6.5vw, 104px) clamp(32px, 5.5vw, 86px);
  border-left: 1px solid var(--plm-account-line);
  background: linear-gradient(145deg, rgba(12, 17, 20, 0.88), rgba(5, 8, 10, 0.96));
}

.plm-account-surface {
  width: min(100%, 470px);
  margin-inline: auto;
}

.plm-account-surface-head {
  margin-bottom: 34px;
}

.plm-account-surface-head h2,
.plm-account-view h1,
.plm-account-view h2,
.auth-form-intro h2 {
  margin: 0;
  color: #f7f9fa;
  font-size: clamp(2.15rem, 3.2vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.plm-account-surface-head > p:not(.plm-account-eyebrow),
.plm-account-view > p:not(.plm-account-eyebrow),
.auth-form-intro > p:not(.plm-account-eyebrow) {
  margin: 13px 0 0;
  color: var(--plm-account-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.plm-account-form,
.auth-form {
  display: none;
}

.plm-account-form.is-active,
.auth-form.is-active {
  display: block;
  animation: plm-account-resolve 280ms var(--plm-account-ease) both;
}

.plm-account-fields,
.auth-fields {
  display: grid;
  margin-top: 30px;
  gap: 18px;
}

.plm-account-field,
.auth-field-group {
  display: grid;
  gap: 8px;
}

.plm-account-field label,
.auth-field-group label,
.auth-modal label {
  color: #d8dfe2;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.auth-field-group label span,
.auth-modal label span {
  color: #7f8b91;
  font-weight: 500;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plm-account-page input:not([type="checkbox"]),
.plm-account-page textarea,
.plm-account-page select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(220, 232, 237, 0.14);
  border-radius: 8px;
  outline: 0;
  background: rgba(2, 5, 7, 0.72);
  color: #f5f8f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.plm-account-page textarea {
  min-height: 112px;
  padding-block: 12px;
  resize: vertical;
}

.plm-account-page input::placeholder,
.plm-account-page textarea::placeholder {
  color: #69757b;
}

.plm-account-page input:not([type="checkbox"]):hover,
.plm-account-page textarea:hover {
  border-color: rgba(220, 232, 237, 0.24);
}

.plm-account-page input:not([type="checkbox"]):focus,
.plm-account-page textarea:focus,
.plm-account-page select:focus {
  border-color: rgba(27, 188, 255, 0.72);
  background: rgba(4, 8, 10, 0.95);
  box-shadow: 0 0 0 3px rgba(27, 188, 255, 0.12);
}

.plm-account-primary,
.plm-account-secondary,
.google-auth-btn,
.auth-login-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--plm-account-ease), border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.plm-account-primary,
.auth-login-page .btn-primary {
  border: 1px solid #28bfff;
  background: var(--plm-account-blue);
  color: #001017;
  box-shadow: 0 12px 28px rgba(27, 188, 255, 0.15);
}

.plm-account-secondary,
.google-auth-btn,
.auth-login-page .btn-secondary {
  border: 1px solid rgba(220, 232, 237, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: #edf2f4;
  box-shadow: none;
}

.plm-account-primary:hover,
.plm-account-secondary:hover,
.google-auth-btn:hover,
.auth-login-page .btn:hover {
  transform: translateY(-1px);
}

.plm-account-primary:hover,
.auth-login-page .btn-primary:hover {
  background: #36c5ff;
  box-shadow: 0 14px 32px rgba(27, 188, 255, 0.2);
}

.plm-account-secondary:hover,
.google-auth-btn:hover,
.auth-login-page .btn-secondary:hover {
  border-color: rgba(220, 232, 237, 0.28);
  background: rgba(255, 255, 255, 0.065);
}

.plm-account-primary:disabled,
.plm-account-secondary:disabled,
.google-auth-btn:disabled,
.auth-login-page .btn:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.plm-account-page :focus-visible {
  outline: 2px solid rgba(86, 205, 255, 0.92);
  outline-offset: 3px;
}

.plm-account-link,
.auth-text-btn,
.auth-inline-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9c3c8;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.plm-account-link:hover,
.auth-text-btn:hover,
.auth-inline-action:hover {
  color: #fff;
}

.auth-wide-btn {
  width: 100%;
}

.auth-primary-action {
  margin-top: 24px;
}

.google-auth-btn {
  width: 100%;
  cursor: pointer;
}

.google-auth-btn svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 21px 0;
  color: #68747a;
  font-size: 0.7rem;
  gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: rgba(220, 232, 237, 0.1);
  content: "";
}

.auth-switch-copy,
.auth-helper {
  margin: 24px 0 0;
  color: #849097;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.auth-check-row {
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: start;
  color: #9aa6ac;
  font-size: 0.78rem;
  line-height: 1.45;
  gap: 10px;
}

.auth-check-row input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--plm-account-blue);
}

.auth-message {
  min-height: 20px;
  margin: 18px 0 0;
  color: var(--plm-account-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.auth-message:empty {
  min-height: 0;
  margin-top: 0;
}

.auth-message.error {
  color: #ffaaa7;
}

.auth-message.success {
  color: #8ce7b3;
}

.plm-account-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  color: #707c82;
  font-size: 0.7rem;
  gap: 7px;
}

.plm-account-security-note svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

@keyframes plm-account-resolve {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .plm-account-layout {
    grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  }

  .plm-account-product {
    padding-inline: clamp(36px, 5vw, 70px);
  }

  .plm-account-product h1 {
    font-size: clamp(3.25rem, 5.8vw, 5.4rem);
  }
}

@media (max-width: 820px) {
  :root {
    --plm-account-header-height: 64px;
  }

  .plm-account-header-inner {
    width: min(calc(100% - 32px), 760px);
  }

  .plm-account-brand-name {
    display: none;
  }

  .plm-account-layout {
    display: block;
    width: min(100%, 760px);
  }

  .plm-account-product {
    display: block;
    padding: 54px 24px 36px;
  }

  .plm-account-product::before {
    width: 90vw;
    left: -35%;
    top: -30%;
  }

  .plm-account-product-inner {
    width: min(100%, 640px);
  }

  .plm-account-product h1 {
    max-width: 600px;
    font-size: clamp(3.15rem, 10vw, 5.4rem);
  }

  .plm-account-product-copy {
    max-width: 500px;
    margin-top: 21px;
  }

  .plm-account-ecosystem {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
    gap: 7px;
  }

  .plm-account-product-row {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 58px;
    padding: 8px;
    gap: 9px;
  }

  .plm-account-product-row::before,
  .plm-account-product-state,
  .plm-account-product-label span {
    display: none;
  }

  .plm-account-product-icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .plm-account-product-icon img {
    width: 24px;
    height: 24px;
  }

  .plm-account-product-label strong {
    overflow: hidden;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .plm-account-access {
    min-height: auto;
    padding: 52px 24px 72px;
    border-top: 1px solid var(--plm-account-line);
    border-left: 0;
  }

  .plm-account-surface {
    width: min(100%, 520px);
  }
}

@media (max-width: 520px) {
  .plm-account-header-inner {
    gap: 14px;
  }

  .plm-account-brand img {
    width: 39px;
    height: 31px;
    flex-basis: 39px;
  }

  .plm-account-brand-context {
    padding-left: 9px;
  }

  .plm-account-back {
    font-size: 0.76rem;
  }

  .plm-account-product {
    padding: 44px 18px 30px;
  }

  .plm-account-eyebrow {
    margin-bottom: 17px;
  }

  .plm-account-product h1 {
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .plm-account-product-copy {
    font-size: 0.94rem;
  }

  .plm-account-ecosystem {
    margin-top: 28px;
  }

  .plm-account-product-row {
    display: flex;
    justify-content: center;
    min-height: 48px;
    padding: 6px;
  }

  .plm-account-product-label {
    display: none;
  }

  .plm-account-access {
    padding: 44px 18px 60px;
  }

  .plm-account-surface-head,
  .auth-form-intro {
    margin-bottom: 0;
  }

  .plm-account-surface-head h2,
  .plm-account-view h1,
  .plm-account-view h2,
  .auth-form-intro h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plm-account-page *,
  .plm-account-page *::before,
  .plm-account-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
