.pg-login {
  --login-bg: #080d24;
  --login-panel: #111936;
  --login-input: #151c3b;
  --login-purple: #7c3aed;
  --login-bright: #9333ea;
  --login-violet: #a855f7;
  --login-hover: #271350;
  --login-muted: #b8b7d9;
  position: relative;
  min-height: clamp(38rem, calc(100vh - 9rem), 51rem);
  padding: clamp(2.5rem, 5vw, 5.25rem) 0;
  color: #fff;
  background: radial-gradient(circle at 92% 4%, rgba(147, 51, 234, .22), transparent 27rem), radial-gradient(circle at 4% 82%, rgba(124, 58, 237, .14), transparent 24rem), var(--login-bg);
  isolation: isolate;
  overflow: hidden;
}

.pg-login::before, .pg-login::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.pg-login::before { top: 6rem; right: -7rem; width: 34rem; height: 13rem; border: 1px solid rgba(168, 85, 247, .65); border-radius: 50%; transform: rotate(-13deg); }
.pg-login::after { bottom: 2rem; left: -12rem; width: 31rem; height: 18rem; border: 1px solid rgba(124, 58, 237, .5); border-radius: 50%; transform: rotate(22deg); }
.pg-login__container { max-width: 1240px; }
.pg-login__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr); gap: clamp(1.25rem, 2.4vw, 2rem); align-items: stretch; }
.pg-login__welcome, .pg-login__panel { min-width: 0; min-height: 36rem; border: 1px solid rgba(168, 85, 247, .72); border-radius: 1.35rem; box-shadow: 0 24px 70px rgba(1, 4, 20, .36); }
.pg-login__welcome { position: relative; overflow: hidden; background: #17103a; }
.pg-login__photo, .pg-login__photo img, .pg-login__welcome-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-login__photo img { object-fit: cover; object-position: 58% center; }
.pg-login__welcome-shade { background: linear-gradient(90deg, rgba(22, 12, 57, .98) 0%, rgba(27, 14, 63, .92) 38%, rgba(35, 15, 70, .48) 66%, rgba(24, 11, 55, .2) 100%), linear-gradient(0deg, rgba(11, 8, 37, .72), transparent 45%); }
.pg-login__welcome-content { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 36rem; padding: clamp(2rem, 4vw, 3.25rem); }

.pg-login__brand { display: flex; align-items: center; gap: .75rem; font-size: 1rem; font-weight: 750; }
.pg-login__brand-mark, .pg-login__account-icon, .pg-login__highlight-icon { display: grid; flex: 0 0 auto; place-items: center; background: linear-gradient(145deg, var(--login-bright), var(--login-purple)); box-shadow: 0 10px 30px rgba(124, 58, 237, .3); }
.pg-login__brand-mark { width: 2.75rem; height: 2.75rem; border-radius: .75rem; }
.pg-login__brand-mark img { width: 2.1rem; height: 2.1rem; }
.pg-login__intro { max-width: 31rem; margin-top: clamp(2.25rem, 5vw, 4rem); }
.pg-login__intro h1, .pg-login__panel h2 { margin: 0; color: #fff; font-family: inherit; font-weight: 800; letter-spacing: -.035em; }
.pg-login__intro h1 { font-size: clamp(2.65rem, 4.1vw, 3.35rem); line-height: 1.05; }
.pg-login__tagline { margin: 1.05rem 0 .65rem; color: #d8b4fe; font-size: clamp(1rem, 1.5vw, 1.18rem); font-weight: 750; }
.pg-login__description { max-width: 35ch; margin: 0; color: #d3d1e8; font-size: .98rem; line-height: 1.6; }

.pg-login__highlights { display: grid; gap: .8rem; max-width: 31rem; margin: auto 0 0; padding: 2rem 0 0; list-style: none; }
.pg-login__highlights li { display: flex; align-items: center; gap: .9rem; }
.pg-login__highlight-icon { width: 2.75rem; height: 2.75rem; border-radius: .8rem; background: rgba(124, 58, 237, .58); box-shadow: none; backdrop-filter: blur(8px); }
.pg-login__highlight-icon svg, .pg-login__account-icon svg, .pg-login__photo-label svg, .pg-login__input-wrap > svg, .pg-login__password-toggle svg, .pg-login__form-alert > svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.pg-login__highlight-icon svg { width: 1.5rem; height: 1.5rem; }
.pg-login__highlights strong, .pg-login__highlights small { display: block; }
.pg-login__highlights strong { color: #fff; font-size: .9rem; font-weight: 750; }
.pg-login__highlights small { margin-top: .12rem; color: #c7c5dd; font-size: .77rem; }

.pg-login__photo-label { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border: 1px solid rgba(168, 85, 247, .7); border-radius: 999px; color: #fff; background: rgba(8, 13, 36, .82); font-size: .72rem; font-weight: 700; backdrop-filter: blur(8px); }
.pg-login__photo-label svg { width: 1rem; height: 1rem; }

.pg-login__panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 3rem); background: radial-gradient(circle at 90% 0%, rgba(147, 51, 234, .16), transparent 14rem), linear-gradient(145deg, rgba(20, 27, 61, .98), rgba(13, 20, 49, .98)); }
.pg-login__panel-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.pg-login__account-icon { width: 3.5rem; height: 3.5rem; border-radius: .9rem; }
.pg-login__account-icon svg { width: 1.85rem; height: 1.85rem; fill: none; stroke: currentColor; }
.pg-login__panel h2 { font-size: clamp(1.75rem, 2.7vw, 2.15rem); line-height: 1.15; }
.pg-login__panel-heading p { margin: .55rem 0 0; color: var(--login-muted); font-size: .94rem; }

.pg-login__field { margin-bottom: 1.2rem; }
.pg-login__field label { display: inline-block; margin-bottom: .48rem; color: #f8f7ff; font-size: .875rem; font-weight: 700; }
.pg-login__input-wrap { position: relative; }
.pg-login__input-wrap > svg { position: absolute; z-index: 2; top: 50%; left: 1rem; width: 1.2rem; height: 1.2rem; color: #c084fc; transform: translateY(-50%); pointer-events: none; }
.pg-login__field .form-control { width: 100%; min-height: 3.05rem; padding: .68rem 1rem .68rem 2.85rem; border: 1px solid rgba(168, 85, 247, .7); border-radius: .7rem; color: #fff; background: var(--login-input); font-size: .94rem; box-shadow: none; caret-color: #c084fc; }
.pg-login__field .form-control::placeholder { color: #9f9dbd; opacity: 1; }
.pg-login__field .form-control:hover { border-color: #a855f7; }
.pg-login__field .form-control:focus { border-color: #c084fc; background: #171f42; box-shadow: 0 0 0 3px rgba(168, 85, 247, .18); }
.pg-login__password-wrap .form-control { padding-right: 5.5rem; border-radius: .7rem; }
.pg-login__password-toggle { position: absolute; z-index: 3; top: 1px; right: 1px; bottom: 1px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 4.8rem; padding: 0 .8rem; border: 0; border-left: 1px solid rgba(168, 85, 247, .45); border-radius: 0 .65rem .65rem 0; color: #e9d5ff; background: rgba(39, 19, 80, .72); font-size: .78rem; font-weight: 750; cursor: pointer; }
.pg-login__password-toggle[hidden] { display: none; }
.pg-login__password-toggle:hover, .pg-login__password-toggle[aria-pressed="true"] { color: #fff; background: var(--login-hover); }
.pg-login__password-toggle svg { width: 1.05rem; height: 1.05rem; }

.pg-login__field .errorlist, .pg-login__form-alert .errorlist { margin: .45rem 0 0; padding: 0; color: #fda4af; font-size: .8rem; list-style: none; }
.pg-login__field--error .form-control { border-color: #fb7185; }
.pg-login__form-alert { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1.2rem; padding: .8rem .9rem; border: 1px solid rgba(251, 113, 133, .55); border-radius: .7rem; color: #fecdd3; background: rgba(159, 18, 57, .16); }
.pg-login__form-alert > svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .05rem; }
.pg-login__form-alert .errorlist { margin: 0; color: inherit; }
.pg-login__recovery { margin: -.1rem 0 1.35rem; color: var(--login-muted); font-size: .86rem; }
.pg-login__recovery span { color: #d8b4fe; font-weight: 750; }

.pg-login__submit { width: 100%; min-height: 3.15rem; padding: .7rem 1rem; border: 1px solid transparent; border-radius: .72rem; color: #fff; background: linear-gradient(110deg, var(--login-purple), var(--login-violet)); box-shadow: 0 13px 30px rgba(124, 58, 237, .28); font-size: 1rem; font-weight: 800; cursor: pointer; transition: filter .18s ease, transform .18s ease, box-shadow .18s ease; }
.pg-login__submit:hover { filter: brightness(1.12); box-shadow: 0 15px 34px rgba(147, 51, 234, .38); transform: translateY(-1px); }
.pg-login__submit:disabled { color: #9f9dbd; background: #272c4a; box-shadow: none; cursor: not-allowed; transform: none; }
.pg-login__password-toggle:focus-visible, .pg-login__submit:focus-visible, .pg-login__home-link:focus-visible { outline: 3px solid rgba(216, 180, 254, .9); outline-offset: 3px; }
.pg-login__home-link { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.65rem; border-radius: .25rem; color: #e9d5ff; font-size: .88rem; font-weight: 700; text-decoration-color: rgba(233, 213, 255, .55); text-underline-offset: .22em; }
.pg-login__home-link:hover { color: #c084fc; }

.public-app:has(.pg-login) .public-header, .public-app:has(.pg-login) .public-footer { background: #080d24; border-color: rgba(168, 85, 247, .28); }
.public-app:has(.pg-login) .public-footer { padding-block: 2rem 1.35rem; }
.public-app:has(.pg-login) .public-footer p, .public-app:has(.pg-login) .public-footer small { color: #aaa9c8; }
.public-app:has(.pg-login) .public-footer a, .public-app:has(.pg-login) .public-footer h2, .public-app:has(.pg-login) .public-footer .public-brand { color: #f8f7ff; }

@media (max-width: 991.98px) {
  .pg-login { padding-block: 2.25rem; }
  .pg-login__layout { grid-template-columns: minmax(0, 1fr); }
  .pg-login__welcome, .pg-login__panel { min-height: 0; }
  .pg-login__welcome-content { min-height: 34rem; }
  .pg-login__panel { padding-block: 2.5rem; }
}

@media (max-width: 575.98px) {
  .pg-login { padding-block: 1rem 1.5rem; }
  .pg-login__layout { gap: 1rem; }
  .pg-login__welcome, .pg-login__panel { border-radius: 1rem; }
  .pg-login__welcome-content, .pg-login__panel { padding: 1.35rem; }
  .pg-login__welcome-content { min-height: 31rem; }
  .pg-login__intro { margin-top: 2rem; }
  .pg-login__intro h1 { font-size: 2.45rem; }
  .pg-login__highlights { padding-top: 1.6rem; }
  .pg-login__highlights small { font-size: .72rem; }
  .pg-login__photo-label { right: .75rem; bottom: .75rem; }
  .pg-login__panel-heading { gap: .8rem; margin-bottom: 1.6rem; }
  .pg-login__account-icon { width: 3rem; height: 3rem; }
  .pg-login__panel h2 { font-size: 1.55rem; }
  .pg-login__panel-heading p { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) { .pg-login__submit { transition: none; } }
