﻿.woocommerce-account .pp-content {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  padding-block: 48px 72px;
}

.woocommerce-account .pp-content > article > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.woocommerce-account .woocommerce {
  width: 100%;
}

.pro-primes-auth-page {
  --auth-primary: #141c62;
  --auth-primary-light: #3344c2;
  --auth-accent: #20c463;
  --auth-bg: #f5f6fb;
  --auth-surface: #fff;
  --auth-soft: #f3f5fb;
  --auth-line: #e2e5ef;
  --auth-text: #171a28;
  --auth-muted: #777d8f;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  width: min(960px, 100%);
  min-height: 630px;
  margin: 0 auto;
  overflow: hidden;
  direction: ltr;
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  background: var(--auth-surface);
  box-shadow: 0 22px 60px rgba(25, 33, 80, .12);
}

.pro-primes-auth-page__visual,
.pro-primes-account-auth {
  direction: rtl;
}

.pro-primes-auth-page__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 54px 44px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(76, 238, 156, .35), transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(76, 89, 220, .44), transparent 38%),
    linear-gradient(145deg, #111955 0%, #19287a 52%, #14235f 100%);
}

.pro-primes-auth-page__visual::before,
.pro-primes-auth-page__visual::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.pro-primes-auth-page__visual::before {
  top: -90px;
  left: -100px;
  width: 360px;
  height: 360px;
}

.pro-primes-auth-page__visual::after {
  right: -160px;
  bottom: -170px;
  width: 440px;
  height: 440px;
}

.pro-primes-auth-page__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.pro-primes-auth-page__orb--one {
  top: 120px;
  right: 50px;
  width: 94px;
  height: 94px;
  background: linear-gradient(145deg, rgba(32, 196, 99, .85), rgba(32, 196, 99, .12));
  box-shadow: 0 20px 50px rgba(32, 196, 99, .22);
}

.pro-primes-auth-page__orb--two {
  top: 86px;
  right: 124px;
  width: 26px;
  height: 26px;
  border: 6px solid rgba(255, 255, 255, .7);
}

.pro-primes-auth-page__visual-content {
  position: relative;
  z-index: 1;
}

.pro-primes-auth-page__eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.pro-primes-auth-page__visual h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.45;
}

.pro-primes-auth-page__visual p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  line-height: 2;
}

.pro-primes-auth-page__visual ul {
  display: grid;
  gap: 11px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
}

.pro-primes-auth-page__visual li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pro-primes-auth-page__visual li svg {
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 50%;
  color: #0d6337;
  background: #83efae;
}

.pro-primes-account-auth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 52px 58px;
  color: var(--auth-text);
  background: var(--auth-surface);
}

.pro-primes-account-auth__head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}

.pro-primes-account-auth__icon {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--auth-primary), var(--auth-primary-light));
  box-shadow: 0 10px 24px rgba(22, 31, 105, .2);
}

.pro-primes-account-auth__kicker {
  margin: 0 0 3px;
  color: var(--auth-muted);
  font-size: 11px;
}

.pro-primes-account-auth h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: 27px;
  line-height: 1.35;
}

.pro-primes-account-auth__intro {
  margin: 0 0 27px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.9;
}

.pro-primes-account-auth__row {
  margin: 0 0 17px;
}

.pro-primes-account-auth label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-text);
  font-size: 12px;
  font-weight: 800;
}

.pro-primes-account-auth__input-wrap {
  position: relative;
}

.pro-primes-account-auth__input-wrap > span {
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  color: #8c91a4;
  transform: translateY(-50%);
  pointer-events: none;
}

.pro-primes-account-auth input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  border: 1px solid var(--auth-line);
  border-radius: 13px;
  padding: 0 15px;
  color: var(--auth-text);
  background: var(--auth-surface);
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.pro-primes-account-auth__input-wrap input {
  padding-right: 48px;
  direction: ltr;
  text-align: right;
}

.pro-primes-account-auth input::placeholder {
  color: #a3a7b5;
}

.pro-primes-account-auth input:focus {
  outline: none;
  border-color: #5867ce;
  box-shadow: 0 0 0 4px rgba(51, 68, 194, .1);
}

.pro-primes-account-auth small {
  display: block;
  margin-top: 6px;
  color: var(--auth-muted);
  font-size: 10px;
}

.pro-primes-account-auth__captcha {
  margin-bottom: 18px;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  padding: 14px;
  background: var(--auth-soft);
}

.pro-primes-account-auth__captcha-head,
.pro-primes-account-auth__captcha-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pro-primes-account-auth__captcha-head {
  margin-bottom: 12px;
}

.pro-primes-account-auth__captcha-head > div {
  display: grid;
  gap: 2px;
}

.pro-primes-account-auth__captcha-head strong {
  color: var(--auth-text);
  font-size: 12px;
}

.pro-primes-account-auth__captcha-head span {
  color: var(--auth-muted);
  font-size: 10px;
}

.pro-primes-account-auth__refresh {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  color: var(--auth-primary);
  background: var(--auth-surface);
  cursor: pointer;
}

.pro-primes-account-auth__refresh.is-loading svg {
  animation: pro-primes-auth-spin .75s linear infinite;
}

@keyframes pro-primes-auth-spin {
  to { transform: rotate(360deg); }
}

.pro-primes-account-auth__question {
  display: grid;
  min-width: 150px;
  min-height: 48px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(135deg, var(--auth-primary), var(--auth-primary-light));
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 3px;
  user-select: none;
}

.pro-primes-account-auth__captcha-body input {
  width: 105px;
  height: 48px;
  direction: ltr;
  text-align: center;
  font-weight: 800;
}

.pro-primes-account-auth__otp[hidden],
.pro-primes-account-auth__verify[hidden],
.pro-primes-account-auth [hidden] {
  display: none;
}

.pro-primes-account-auth__otp input {
  direction: ltr;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 6px;
}

.pro-primes-account-auth__actions {
  display: grid;
}

.pro-primes-account-auth__actions button {
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(100deg, var(--auth-primary), var(--auth-primary-light));
  box-shadow: 0 12px 25px rgba(28, 38, 128, .2);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.pro-primes-account-auth__actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(28, 38, 128, .25);
}

.pro-primes-account-auth button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.pro-primes-account-auth__status {
  display: block;
  min-height: 24px;
  margin-top: 10px;
  color: #148049;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.pro-primes-account-auth__status.is-error {
  color: #c13c49;
}

.pro-primes-account-auth__switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12px;
}

.pro-primes-account-auth__switch span {
  color: var(--auth-muted);
}

.pro-primes-account-auth__switch a {
  color: var(--auth-primary-light);
  font-weight: 900;
}

.pro-primes-account-auth__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
  color: var(--auth-muted);
  font-size: 9px;
  line-height: 1.7;
}

.pro-primes-account-auth__privacy svg {
  color: var(--auth-accent);
}

html[data-theme="dark"] .pro-primes-auth-page {
  --auth-primary: #27349c;
  --auth-primary-light: #5367df;
  --auth-bg: #101211;
  --auth-surface: #1b1d1c;
  --auth-soft: #222524;
  --auth-line: #343836;
  --auth-text: #f3f4f4;
  --auth-muted: #a7aaa9;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .woocommerce-account .pp-content {
  color: var(--auth-text);
  background: #101211;
}

html[data-theme="dark"] .pro-primes-account-auth input {
  color: #f3f4f4;
  background: #151716;
}

html[data-theme="dark"] .pro-primes-account-auth input::placeholder {
  color: #747a77;
}

@media (max-width: 900px) {
  .woocommerce-account .pp-content {
    width: min(760px, calc(100% - 28px));
    padding-block: 34px 60px;
  }

  .pro-primes-auth-page {
    grid-template-columns: minmax(250px, .72fr) minmax(390px, 1fr);
  }

  .pro-primes-auth-page__visual {
    padding: 40px 28px;
  }

  .pro-primes-account-auth {
    padding: 44px 38px;
  }
}

@media (max-width: 700px) {
  .woocommerce-account .pp-content {
    width: 100%;
    padding: 18px 12px 42px;
  }

  .pro-primes-auth-page {
    display: block;
    min-height: 0;
    border-radius: 21px;
  }

  .pro-primes-auth-page__visual {
    min-height: 155px;
    align-items: center;
    padding: 27px 24px;
  }

  .pro-primes-auth-page__orb--one {
    top: 30px;
    right: auto;
    left: 30px;
    width: 68px;
    height: 68px;
  }

  .pro-primes-auth-page__orb--two {
    top: 21px;
    right: auto;
    left: 87px;
    width: 18px;
    height: 18px;
    border-width: 4px;
  }

  .pro-primes-auth-page__visual-content {
    max-width: 77%;
    margin-left: auto;
  }

  .pro-primes-auth-page__eyebrow,
  .pro-primes-auth-page__visual ul {
    display: none;
  }

  .pro-primes-auth-page__visual h2 {
    margin-bottom: 6px;
    font-size: 23px;
  }

  .pro-primes-auth-page__visual p {
    font-size: 11px;
    line-height: 1.8;
  }

  .pro-primes-account-auth {
    padding: 30px 23px 27px;
  }

  .pro-primes-account-auth__head {
    margin-bottom: 10px;
  }

  .pro-primes-account-auth__icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .pro-primes-account-auth h1 {
    font-size: 23px;
  }

  .pro-primes-account-auth__intro {
    margin-bottom: 22px;
  }
}

@media (max-width: 420px) {
  .woocommerce-account .pp-content {
    padding-inline: 8px;
  }

  .pro-primes-auth-page__visual {
    min-height: 135px;
    padding: 22px 18px;
  }

  .pro-primes-auth-page__visual-content {
    max-width: 82%;
  }

  .pro-primes-auth-page__visual h2 {
    font-size: 20px;
  }

  .pro-primes-account-auth {
    padding: 26px 17px 24px;
  }

  .pro-primes-account-auth__captcha-body {
    gap: 8px;
  }

  .pro-primes-account-auth__question {
    min-width: 0;
    flex: 1;
    font-size: 17px;
  }

  .pro-primes-account-auth__captcha-body input {
    width: 88px;
  }

  .pro-primes-account-auth__switch {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pro-primes-account-auth *,
  .pro-primes-account-auth *::before,
  .pro-primes-account-auth *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Image CAPTCHA: the picture is the challenge, the status line is only for loading and errors.
   The picture must NOT be width:100%: as a flex item that resolves its basis to the whole line,
   which pushed the answer field to negative x — clean off screen at 390px and 768px both.
   Let it size to its own 279px and shrink when the column is narrower, then stack the pair once
   there is no honest room for both. */
.pro-primes-account-auth__captcha-body{flex-wrap:wrap}
.pro-primes-account-auth__captcha-image{display:block;flex:0 1 auto;width:auto;min-width:0;max-width:100%;height:auto;border:1px solid #e3e7ee;border-radius:10px;background:#f4f6fa}
.pro-primes-account-auth__captcha-image[hidden]{display:none}
.pro-primes-account-auth__captcha-body input{flex:1 1 96px;min-width:0}
@media(max-width:460px){
  .pro-primes-account-auth__captcha-body{flex-direction:column;align-items:stretch}
  .pro-primes-account-auth__captcha-image{max-width:100%}
  .pro-primes-account-auth__captcha-body input{width:100%}
}

