:root {
  --pgm-navy: #0b2f63;
  --pgm-navy-dark: #071f43;
  --pgm-blue: #1769c2;
  --pgm-blue-dark: #0f58a5;
  --pgm-blue-soft: #eef6ff;
  --pgm-surface: #ffffff;
  --pgm-canvas: #f4f7fb;
  --pgm-text: #172033;
  --pgm-muted: #637083;
  --pgm-border: #dbe4ef;
  --pgm-danger: #9d302d;
  --pgm-danger-bg: #ffeded;
}

body.pgm-portal-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--pgm-text);
  background: var(--pgm-canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pgm-portal-page *,
.pgm-portal-page *::before,
.pgm-portal-page *::after {
  box-sizing: border-box;
}

.pgm-portal-page #wpadminbar {
  position: fixed;
}

.pgm-frame-wrap {
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: var(--pgm-canvas);
}

.admin-bar .pgm-frame-wrap {
  height: calc(100dvh - 32px);
}

.pgm-portal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--pgm-canvas);
}

.pgm-login-stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(460px, 1.08fr);
  background: #fff;
}

.admin-bar .pgm-login-stage {
  min-height: calc(100dvh - 32px);
}

.pgm-login-showcase {
  position: relative;
  isolation: isolate;
  min-height: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 62px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(65, 150, 242, .34), transparent 24%),
    radial-gradient(circle at 10% 88%, rgba(23, 105, 194, .32), transparent 25%),
    linear-gradient(150deg, var(--pgm-navy-dark) 0%, var(--pgm-navy) 52%, #0b3f7c 100%);
}

.pgm-login-showcase::before,
.pgm-login-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.pgm-login-showcase::before {
  width: 420px;
  height: 420px;
  right: -220px;
  top: 18%;
}

.pgm-login-showcase::after {
  width: 300px;
  height: 300px;
  left: -150px;
  bottom: 4%;
}

.pgm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.pgm-brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.06em;
}

.pgm-brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 8px;
}

.pgm-brand strong,
.pgm-brand small {
  display: block;
}

.pgm-brand strong {
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .035em;
}

.pgm-brand small {
  margin-top: 1px;
  color: inherit;
  opacity: .68;
  font-size: .72rem;
}

.pgm-showcase-copy {
  max-width: 580px;
  margin: auto 0;
  padding: 54px 0;
}

.pgm-demo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.87);
  background: rgba(255,255,255,.08);
  font-size: .75rem;
  font-weight: 750;
}

.pgm-demo-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75baff;
  box-shadow: 0 0 0 4px rgba(117,186,255,.13);
}

.pgm-showcase-copy h1 {
  max-width: 560px;
  margin: 26px 0 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.pgm-showcase-copy > p {
  max-width: 530px;
  margin: 22px 0 30px;
  color: rgba(255,255,255,.74);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.pgm-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pgm-feature-row span {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.065);
  font-size: .8rem;
  font-weight: 700;
}

.pgm-feature-row b {
  color: #78baff;
  font-size: .68rem;
  letter-spacing: .08em;
}

.pgm-showcase-footer {
  color: rgba(255,255,255,.48);
  font-size: .72rem;
}

.pgm-login-panel {
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 78px);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.pgm-login-card {
  width: min(100%, 430px);
}

.pgm-mobile-brand {
  display: none;
  margin-bottom: 34px;
  color: var(--pgm-navy);
}

.pgm-mobile-brand .pgm-brand-mark {
  background: linear-gradient(145deg, #267fde, var(--pgm-blue));
}

.pgm-eyebrow {
  margin: 0 0 8px;
  color: var(--pgm-blue);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pgm-login-card h2 {
  margin: 0;
  color: var(--pgm-navy);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.pgm-login-intro {
  margin: 12px 0 28px;
  color: var(--pgm-muted);
  font-size: .94rem;
}

.pgm-login-error {
  margin: 0 0 17px;
  padding: 12px 13px;
  border: 1px solid #ffd0ce;
  border-radius: 10px;
  color: var(--pgm-danger);
  background: var(--pgm-danger-bg);
  font-size: .83rem;
}

.pgm-login-form p {
  margin: 0 0 18px;
}

.pgm-login-form label {
  display: block;
  margin: 0 0 7px;
  color: #29364a;
  font-size: .85rem;
  font-weight: 750;
}

.pgm-login-form input[type="text"],
.pgm-login-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #cbd7e6;
  border-radius: 10px;
  outline: 0;
  color: var(--pgm-text);
  background: #fff;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.pgm-login-form input[type="text"]:focus,
.pgm-login-form input[type="password"]:focus {
  border-color: var(--pgm-blue);
  box-shadow: 0 0 0 3px rgba(23,105,194,.2);
}

.pgm-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -2px 0 22px;
  color: var(--pgm-muted);
  font-size: .83rem;
}

.pgm-login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--pgm-muted);
  cursor: pointer;
}

.pgm-login-options input {
  width: 17px;
  height: 17px;
  accent-color: var(--pgm-blue);
}

.pgm-login-options a {
  color: var(--pgm-blue);
  font-weight: 700;
  text-decoration: none;
}

.pgm-login-options a:hover {
  text-decoration: underline;
}

.pgm-login-form button,
.pgm-access-message a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #fff;
  background: var(--pgm-blue);
  box-shadow: 0 8px 22px rgba(23,105,194,.22);
  font: inherit;
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.pgm-login-form button:hover,
.pgm-access-message a:hover {
  transform: translateY(-1px);
  background: var(--pgm-blue-dark);
  box-shadow: 0 10px 26px rgba(23,105,194,.28);
}

.pgm-login-form button:focus-visible,
.pgm-login-options a:focus-visible,
.pgm-access-message a:focus-visible {
  outline: 3px solid rgba(23,105,194,.32);
  outline-offset: 2px;
}

.pgm-login-help {
  margin: 23px 0 0;
  color: var(--pgm-muted);
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
}

.pgm-access-message {
  width: min(100% - 32px, 620px);
  margin: 10vh auto;
  padding: 34px;
  border: 1px solid var(--pgm-border);
  border-radius: 18px;
  color: var(--pgm-text);
  background: #fff;
  box-shadow: 0 16px 48px rgba(11,47,99,.12);
  text-align: center;
}

.pgm-access-message h1 {
  margin: 0;
  color: var(--pgm-navy);
  font-size: 1.7rem;
}

.pgm-access-message p {
  margin: 10px 0 24px;
  color: var(--pgm-muted);
}

.pgm-access-message a {
  width: auto;
}

@media (max-width: 782px) {
  .admin-bar .pgm-frame-wrap,
  .admin-bar .pgm-login-stage {
    height: calc(100dvh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

@media (max-width: 820px) {
  .pgm-login-stage {
    grid-template-columns: 1fr;
  }

  .pgm-login-showcase {
    display: none;
  }

  .pgm-mobile-brand {
    display: inline-flex;
  }

  .pgm-login-panel {
    padding: 28px 22px;
  }
}

@media (max-width: 430px) {
  .pgm-login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pgm-portal-page *,
  .pgm-portal-page *::before,
  .pgm-portal-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

