:root {
  --pg-ink: #0b1730;
  --pg-muted: #6d7890;
  --pg-violet: #7c3aed;
  --pg-indigo: #4f46e5;
  --pg-line: #dde3ed;
}

html,
html.dark-mode { background: #07111f; }

body.pg-account-page,
html.dark-mode body.pg-account-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--pg-ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(124, 58, 237, .30), transparent 30rem),
    radial-gradient(circle at 92% 85%, rgba(6, 182, 212, .18), transparent 34rem),
    linear-gradient(145deg, #07111f 0%, #0b1830 52%, #07111f 100%) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body.pg-account-page::before,
body.pg-account-page::after {
  position: fixed;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body.pg-account-page::before { top: -12rem; right: 8%; width: 22rem; height: 22rem; }
body.pg-account-page::after { bottom: -15rem; left: 3%; width: 30rem; height: 30rem; }

body.pg-account-page #layout { min-height: 100vh; }

body.pg-account-page #layout-content.pg-shell,
html.dark-mode body.pg-account-page #layout-content.pg-shell {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  width: calc(100% - 48px);
  max-width: 1120px;
  min-height: min(720px, calc(100vh - 64px));
  margin: 32px auto;
  padding: 0;
  overflow: hidden;
  transform: none;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 30px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .38);
  backdrop-filter: blur(24px);
}

.pg-story {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 52px 54px 44px;
  overflow: hidden;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(124, 58, 237, .28), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}

.pg-story::before {
  position: absolute;
  right: -10rem;
  bottom: 7rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, .018), 0 0 0 8rem rgba(255, 255, 255, .012);
  content: "";
}

.pg-brand,
.pg-mobile-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.pg-brand { color: #fff !important; text-decoration: none !important; }

.pg-mark {
  display: grid;
  width: 46px;
  height: 46px;
  transform: rotate(-8deg);
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #22d3ee, #7c3aed 72%);
  box-shadow: 0 12px 30px rgba(124, 58, 237, .34);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.05em;
  place-items: center;
}

.pg-brand .pg-mark { transform: rotate(-8deg); }
.pg-brand strong { display: block; font-size: 16px; letter-spacing: .12em; }
.pg-brand small { display: block; margin-top: 2px; color: #a5b4fc; font-size: 10px; font-weight: 700; letter-spacing: .38em; }

.pg-story-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 40px 0;
}

.pg-kicker,
.pg-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.pg-kicker { display: flex; align-items: center; gap: 9px; color: #a5b4fc; }
.pg-kicker i { width: 26px; height: 1px; background: currentColor; }

.pg-story h2 {
  margin: 23px 0 18px;
  color: #fff;
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.pg-story h2 em { color: #a78bfa; font-style: normal; }
.pg-story-copy > p { max-width: 31rem; margin: 0; color: rgba(226, 235, 251, .72); font-size: 15px; line-height: 1.85; }

.pg-benefits { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg-benefits > div { display: flex; min-width: 0; padding-top: 16px; gap: 9px; border-top: 1px solid rgba(255, 255, 255, .15); }
.pg-benefits b { color: #a78bfa; font-size: 10px; letter-spacing: .12em; }
.pg-benefits span { color: rgba(255, 255, 255, .88); font-size: 12px; }
.pg-benefits small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .40); font-size: 9px; }

.pg-auth {
  display: flex;
  min-width: 0;
  padding: 38px 48px 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.pg-card { width: min(100%, 410px); flex: 0 0 auto; }
.pg-mobile-brand { display: none; }
.pg-back { display: inline-flex; margin-bottom: 24px; align-items: center; gap: 7px; color: #7c879b !important; font-size: 12px; font-weight: 600; text-decoration: none !important; }
.pg-back:hover { color: var(--pg-violet) !important; }
.pg-back span { font-size: 16px; }
.pg-eyebrow { margin: 0 0 10px; color: var(--pg-violet); }

.pg-card > h2 { margin: 0; color: var(--pg-ink); font-size: 32px; font-weight: 730; line-height: 1.2; letter-spacing: -.04em; }
.pg-intro { margin: 10px 0 24px; color: var(--pg-muted); font-size: 13px; }

body.pg-account-page #login-form.pg-form,
html.dark-mode body.pg-account-page #login-form.pg-form {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  transform: none;
  color: var(--pg-ink);
}

.pg-field { margin-bottom: 13px; }
.pg-field label { display: block; margin: 0 0 7px; color: #4d5b72; font-size: 12px; font-weight: 650; }

.pg-field input,
.pg-field select,
html.dark-mode .pg-field input,
html.dark-mode .pg-field select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--pg-line);
  border-radius: 13px;
  outline: none;
  color: var(--pg-ink);
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pg-field select { cursor: pointer; }
.pg-field input::placeholder { color: #a0aaba; opacity: 1; }
.pg-field input:focus,
.pg-field select:focus { transform: translateY(-1px); border-color: #9b78f4; box-shadow: 0 0 0 4px rgba(124, 58, 237, .10), 0 9px 24px rgba(15, 23, 42, .06); }

.pg-submit {
  width: 100%;
  height: 54px;
  margin-top: 7px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--pg-violet), var(--pg-indigo));
  box-shadow: 0 13px 30px rgba(124, 58, 237, .26);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.pg-submit:hover,
.pg-submit:focus { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 17px 34px rgba(124, 58, 237, .34); }

.pg-card .message {
  display: none;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 12px;
}

.pg-card .message.success { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.pg-card .message.loading { border-color: #ddd6fe; color: #5b21b6; background: #f5f3ff; }

.pg-switch { display: flex; margin-top: 16px; align-items: center; justify-content: space-between; color: #8b96a8; font-size: 11px; }
.pg-switch a { color: var(--pg-violet) !important; font-weight: 700; text-decoration: none !important; }
.pg-switch a:hover { text-decoration: underline !important; }
.pg-copyright { flex: 0 0 auto; margin: 27px 0 0; color: #9aa5b6; font-size: 10px; letter-spacing: .04em; }

@media (max-width: 900px) {
  body.pg-account-page #layout-content.pg-shell,
  html.dark-mode body.pg-account-page #layout-content.pg-shell { grid-template-columns: .78fr 1.22fr; }
  .pg-story { padding: 40px 32px 34px; }
  .pg-story h2 { font-size: 36px; }
  .pg-benefits { grid-template-columns: 1fr; gap: 9px; }
  .pg-benefits > div { padding-top: 8px; }
  .pg-auth { padding: 34px; }
}

@media (max-width: 700px) {
  body.pg-account-page { background: #f8fafc !important; }
  body.pg-account-page #layout-content.pg-shell,
  html.dark-mode body.pg-account-page #layout-content.pg-shell {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: none;
  }
  .pg-story { display: none; }
  .pg-auth { min-height: 100vh; padding: 30px 24px; }
  .pg-card { width: min(100%, 430px); }
  .pg-mobile-brand { display: flex; margin-bottom: 34px; color: var(--pg-ink); }
  .pg-mobile-brand .pg-mark { width: 42px; height: 42px; border-radius: 13px; }
  .pg-mobile-brand strong { font-size: 14px; letter-spacing: .1em; }
  .pg-mobile-brand small { color: var(--pg-violet); font-size: 9px; letter-spacing: .18em; }
  .pg-card > h2 { font-size: 30px; }
  .pg-back { margin-bottom: 20px; }
  .pg-copyright { margin-top: 28px; }
}

@media (max-height: 720px) and (min-width: 701px) {
  body.pg-account-page #layout-content.pg-shell,
  html.dark-mode body.pg-account-page #layout-content.pg-shell { min-height: 656px; }
  .pg-story { padding-top: 36px; padding-bottom: 30px; }
  .pg-story-copy { padding: 24px 0; }
  .pg-story h2 { margin-top: 16px; font-size: 38px; }
  .pg-auth { padding-top: 26px; padding-bottom: 22px; }
  .pg-back { margin-bottom: 15px; }
  .pg-intro { margin-bottom: 16px; }
  .pg-field { margin-bottom: 9px; }
  .pg-field input,
  .pg-field select { height: 46px; }
  .pg-submit { height: 48px; }
  .pg-copyright { margin-top: 16px; }
}
