/* PUBLICBOOST / AUTH V5 — Premium Clean Purple, original centered layout.
   Loaded after auth-compact.css so recovery flows remain untouched.
   Only the login/register panel uses .pb-auth-v5. */

.auth-gate:not([hidden]){
  align-items:center;
  justify-content:center;
  padding:clamp(12px,3.5vh,34px) 15px;
  background:
    radial-gradient(ellipse 52% 36% at 10% 6%,rgba(93,62,199,.18),transparent 83%),
    radial-gradient(ellipse 46% 48% at 95% 94%,rgba(34,102,184,.11),transparent 83%),
    radial-gradient(ellipse 35% 32% at 53% 46%,rgba(129,69,203,.075),transparent 84%),
    #0c0d16;
}

.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5:not(.pb-v4-phone-wait){
  position:relative!important;
  inset:auto!important;
  display:flex!important;
  flex:0 0 auto!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0!important;
  box-sizing:border-box!important;
  width:min(100%,490px)!important;
  min-width:0!important;
  max-width:490px!important;
  min-height:0!important;
  height:auto!important;
  max-height:calc(100dvh - 30px)!important;
  margin:auto!important;
  padding:27px 30px 23px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  border:1px solid #403a5b!important;
  border-radius:23px!important;
  background:
    radial-gradient(ellipse 90% 50% at 50% -27%,rgba(100,71,206,.18),transparent 90%),
    linear-gradient(155deg,#1c1d2b,#171923 70%,#191b28)!important;
  box-shadow:
    0 34px 90px rgba(0,0,0,.46),
    0 0 0 1px rgba(131,100,229,.045),
    0 0 68px rgba(92,64,217,.12)!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#51456f transparent;
}

.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5:not(.pb-v4-phone-wait)::before{
  position:absolute!important;
  content:""!important;
  left:50%!important;
  right:auto!important;
  top:0!important;
  bottom:auto!important;
  width:126px!important;
  height:3px!important;
  transform:translateX(-50%)!important;
  border:0!important;
  border-radius:0 0 12px 12px!important;
  background:linear-gradient(90deg,#488aff 0%,#9874ff 56%,#c75bec 100%)!important;
  box-shadow:0 0 20px rgba(120,97,237,.32)!important;
}
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5:not(.pb-v4-phone-wait)::after{
  content:none!important;
  display:none!important;
}

/* Brand: confident logo, balanced with its actual wordmark. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.auth-brandmark{
  order:1!important;
  position:relative!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  z-index:1!important;
  display:flex!important;
  width:auto!important;
  min-height:0!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  grid-column:auto!important;
  grid-row:auto!important;
  margin:2px 0 19px!important;
  padding:0!important;
}
.auth-panel.pb-auth-v5 .auth-brandmark>img{
  width:49px!important;
  height:49px!important;
  object-fit:contain!important;
  flex:none!important;
  filter:drop-shadow(0 6px 12px rgba(39,105,232,.24));
}
.auth-panel.pb-auth-v5 .auth-brandmark b{
  font-size:24px!important;
  font-weight:850!important;
  line-height:1.16!important;
  letter-spacing:-1px!important;
}
.auth-panel.pb-auth-v5 .auth-brandmark small{
  font-size:8px!important;
  line-height:1.3!important;
  letter-spacing:2.55px!important;
  opacity:.85;
}

/* Primary navigation: bold segmented buttons, not tiny underlines. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.pb-v4-mode-nav{
  order:2!important;
  position:relative!important;
  left:auto!important;right:auto!important;top:auto!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 20px!important;
  padding:5px!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:5px!important;
  background:#111421!important;
  border:1px solid #323247!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px 5px rgba(0,0,0,.15);
}
.auth-panel.pb-auth-v5 .pb-v4-mode-nav button{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  height:45px!important;
  min-height:45px!important;
  padding:8px 7px!important;
  color:#a8a7be!important;
  background:transparent!important;
  border:0!important;
  border-radius:10px!important;
  font-size:13.5px!important;
  line-height:1.4!important;
  font-weight:800!important;
  box-shadow:none!important;
  transition:background .18s,color .18s,box-shadow .18s;
}
.auth-panel.pb-auth-v5 .pb-v4-mode-nav button::after{
  content:none!important;
  display:none!important;
}
.auth-panel.pb-auth-v5 .pb-v4-mode-nav button.active{
  color:#fff!important;
  background:linear-gradient(110deg,#6458e9 0%,#8255e0 55%,#9d56dc 100%)!important;
  box-shadow:0 5px 16px rgba(87,59,193,.27),inset 0 1px rgba(255,255,255,.13)!important;
}
.auth-panel.pb-auth-v5 .pb-v4-mode-nav button:focus-visible,
.auth-panel.pb-auth-v5 .pb-v4-method-grid button:focus-visible,
.auth-panel.pb-auth-v5 .auth-submit:focus-visible,
.auth-panel.pb-auth-v5 .pb-v5-footer button:focus-visible{
  outline:2px solid #d1bbff!important;
  outline-offset:2px!important;
}

/* Headline: no giant empty promo area, no decorative orbit over inputs. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.pb-v4-header{
  order:3!important;
  position:relative!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  display:block!important;
  grid-column:auto!important;
  grid-row:auto!important;
  align-self:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 0 19px!important;
  padding:0!important;
  overflow:visible!important;
  background:none!important;
}
.auth-panel.pb-auth-v5 .pb-v4-kicker,
.auth-panel.pb-auth-v5 .pb-v4-orbit{display:none!important}
.auth-panel.pb-auth-v5 .pb-v4-heading{
  position:relative!important;
  z-index:1!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}
.auth-panel.pb-auth-v5 .pb-v4-heading h1{
  margin:0!important;
  padding:0!important;
  color:#f5f3ff!important;
  font-size:29px!important;
  font-weight:850!important;
  line-height:1.4!important;
  letter-spacing:-.55px!important;
  text-wrap:balance;
}
.auth-panel.pb-auth-v5 .pb-v4-heading p{
  margin:5px auto 0!important;
  padding:0!important;
  width:auto!important;
  max-width:100%!important;
  color:#aca9c1!important;
  font-size:12px!important;
  line-height:1.75!important;
  text-align:center!important;
}

/* Register-only method selector: two slim pills, no giant option cards. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.pb-v4-methods{
  order:4!important;
  position:relative!important;
  left:auto!important;right:auto!important;top:auto!important;
  display:block!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
  margin:0 0 14px!important;
  padding:0!important;
  min-height:0!important;
}
.auth-panel.pb-auth-v5 .pb-v4-method-title{
  margin:0 0 8px!important;
  font-size:12px!important;
  font-weight:750!important;
  color:#c8c4db!important;
  letter-spacing:0!important;
}
.auth-panel.pb-auth-v5 .pb-v4-method-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:7px!important;
  padding:4px!important;
  border:1px solid #343248!important;
  border-radius:12px!important;
  background:#121421!important;
}
.auth-panel.pb-auth-v5 .pb-v4-method-grid button{
  min-width:0!important;
  min-height:43px!important;
  height:43px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
  padding:8px 6px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#a9a9bd!important;
  box-shadow:none!important;
  text-align:center!important;
}
.auth-panel.pb-auth-v5 .pb-v4-method-grid button[aria-pressed=true]{
  color:#f7f5ff!important;
  border-color:#6e61b4!important;
  background:linear-gradient(120deg,#373355,#3d315d)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035)!important;
}
.auth-panel.pb-auth-v5 .pb-v4-method-grid button>svg{
  width:17px!important;height:17px!important;
  flex:none!important;
  color:currentColor!important;
}
.auth-panel.pb-auth-v5 .pb-v4-method-grid button>span:nth-child(2){
  display:block!important;
  min-width:0!important;
}
.auth-panel.pb-auth-v5 .pb-v4-method-grid button b{
  color:inherit!important;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.auth-panel.pb-auth-v5 .pb-v4-method-grid button small,
.auth-panel.pb-auth-v5 .pb-v4-choice-dot{display:none!important}
.auth-panel.pb-auth-v5 .pb-v5-method-hint{
  margin:8px 1px 0!important;
  color:#9895b0!important;
  font-size:10.5px!important;
  line-height:1.6!important;
}

/* Form: readable labels, comfortable inputs and anchored icons. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.auth-form{
  order:5!important;
  position:relative!important;
  z-index:1!important;
  left:auto!important;right:auto!important;top:auto!important;
  display:grid!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  gap:13px!important;
}
.auth-panel.pb-auth-v5 .auth-form>label{
  min-width:0!important;
  display:grid!important;
  gap:7px!important;
  margin:0!important;
}
.auth-panel.pb-auth-v5 .auth-form>label>span:first-child{
  color:#c7c3da!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:1.5!important;
}
.auth-panel.pb-auth-v5 .pb-v4-field{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
}
.auth-panel.pb-auth-v5 .pb-v4-field>input{
  width:100%!important;
  max-width:none!important;
  height:52px!important;
  min-height:52px!important;
  box-sizing:border-box!important;
  border:1px solid #3d3d55!important;
  border-radius:12px!important;
  background:#11141f!important;
  padding:0 14px 0 47px!important;
  color:#f3f3fc!important;
  font-size:15px!important;
  line-height:1.5!important;
  box-shadow:none!important;
}
.auth-panel.pb-auth-v5 .auth-form input::placeholder{
  color:#9292aa!important;
  opacity:1!important;
}
.auth-panel.pb-auth-v5 .pb-v4-field>input:hover,
.auth-panel.pb-auth-v5 .auth-password-field:hover{
  border-color:#62577e!important;
}
.auth-panel.pb-auth-v5 .pb-v4-field>input:focus,
.auth-panel.pb-auth-v5 .auth-password-field:focus-within{
  border-color:#9b84ef!important;
  background:#151723!important;
  outline:none!important;
  box-shadow:0 0 0 3px rgba(149,108,229,.14)!important;
}
.auth-panel.pb-auth-v5 .pb-v4-input-icon{
  position:absolute!important;
  left:16px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:2!important;
  display:grid!important;
  place-items:center!important;
  width:19px!important;height:19px!important;
  color:#9692b1!important;
  pointer-events:none!important;
}
.auth-panel.pb-auth-v5 .pb-v4-input-icon svg{width:19px!important;height:19px!important}
.auth-panel.pb-auth-v5 .pb-v4-field:focus-within .pb-v4-input-icon{color:#b59cf7!important}
.auth-panel.pb-auth-v5 .auth-password-field{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 46px!important;
  align-items:center!important;
  width:100%!important;
  max-width:none!important;
  height:52px!important;min-height:52px!important;
  border:1px solid #3d3d55!important;
  border-radius:12px!important;
  background:#11141f!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
.auth-panel.pb-auth-v5 .auth-password-field input{
  min-width:0!important;
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  padding:0 9px 0 47px!important;
  font-size:15px!important;
  color:#f3f3fc!important;
  outline:0!important;
  box-shadow:none!important;
}
.auth-panel.pb-auth-v5 .pb-v4-pass-symbol{
  position:absolute!important;
  z-index:2!important;
  left:16px!important;
  top:50%!important;
  width:19px!important;height:19px!important;
  display:grid!important;
  place-items:center!important;
  color:#9692b1!important;
  transform:translateY(-50%)!important;
  pointer-events:none!important;
}
.auth-panel.pb-auth-v5 .pb-v4-pass-symbol svg{width:19px!important;height:19px!important}
.auth-panel.pb-auth-v5 .auth-password-field:focus-within .pb-v4-pass-symbol{color:#b59cf7!important}
.auth-panel.pb-auth-v5 .auth-password-toggle{
  position:static!important;transform:none!important;
  display:grid!important;place-items:center!important;
  width:40px!important;height:40px!important;
  margin:0 3px 0 0!important;
  padding:0!important;
  border:0!important;border-radius:9px!important;
  background:transparent!important;
  color:#9694b0!important;
}
.auth-panel.pb-auth-v5 .auth-password-toggle:hover{
  background:#252438!important;color:#c1adff!important;
}
.auth-panel.pb-auth-v5 .auth-password-toggle svg{width:19px!important;height:19px!important}

/* Remember + Forgot are a compact row, neither is a fake action. */
.auth-panel.pb-auth-v5 .pb-v4-login-options{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  width:100%!important;
  margin:1px 0 0!important;
  padding:0!important;
}
.auth-panel.pb-auth-v5 .pb-v4-remember{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  cursor:pointer!important;
  width:auto!important;
  min-width:0!important;
}
.auth-panel.pb-auth-v5 .pb-v4-remember>input[type=checkbox]{
  appearance:auto!important;-webkit-appearance:checkbox!important;
  accent-color:#946bee!important;
  width:17px!important;min-width:17px!important;
  height:17px!important;min-height:17px!important;
  margin:0!important;
  padding:0!important;
  box-shadow:none!important;
  border-radius:4px!important;
  cursor:pointer!important;
}
.auth-panel.pb-auth-v5 .pb-v4-remember>span:last-child{
  margin:0!important;
  color:#bdb8d0!important;
  font-size:11.5px!important;
  font-weight:650!important;
  white-space:nowrap!important;
}
.auth-gate .auth-panel.pb-auth-v5 .pb-v4-login-options>.auth-forgot{
  flex:none!important;
  display:inline-flex!important;
  width:auto!important;
  height:auto!important;
  min-height:28px!important;
  margin:0!important;
  padding:3px 0!important;
  justify-content:flex-end!important;
  align-items:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#bca2ff!important;
  box-shadow:none!important;
  font-size:11.5px!important;
  font-weight:800!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.auth-gate .auth-panel.pb-auth-v5 .pb-v4-login-options>.auth-forgot:hover{text-decoration:underline!important}

/* Main action has room and contrast. */
.auth-panel.pb-auth-v5 .auth-form>.auth-submit{
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  margin:4px 0 0!important;
  padding:10px 14px!important;
  border:0!important;
  border-radius:12px!important;
  background:linear-gradient(105deg,#6954ed 0%,#8752e4 53%,#a351df 100%)!important;
  box-shadow:0 10px 28px rgba(105,72,219,.26),inset 0 1px rgba(255,255,255,.12)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:850!important;
  line-height:1.5!important;
  transition:transform .14s,box-shadow .14s;
}
.auth-panel.pb-auth-v5 .auth-form>.auth-submit:active{transform:scale(.99)}
.auth-panel.pb-auth-v5 .auth-form>.auth-submit:disabled{opacity:.65;cursor:wait;transform:none}
.auth-panel.pb-auth-v5 .auth-form>.auth-submit svg{width:19px!important;height:19px!important}
.auth-panel.pb-auth-v5 .auth-error{
  margin:0!important;
  padding:10px 12px!important;
  background:rgba(181,58,78,.13)!important;
  border:1px solid rgba(221,103,130,.22)!important;
  border-radius:9px!important;
  color:#ffc2cb!important;
  font-size:11.5px!important;
  line-height:1.65!important;
}
.auth-panel.pb-auth-v5 .auth-error[hidden]{display:none!important}

/* Google is hidden when unavailable, not replaced with a dead white button. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v5>.auth-google-section{
  order:6!important;
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  margin:15px 0 0!important;
  padding:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
}
.auth-gate:not([hidden])>.auth-panel.pb-auth-v5>.auth-google-section[hidden],
.auth-panel.pb-auth-v5.pb-auth-phone .auth-google-section{display:none!important}

/* Clear bottom action, understated rather than a second giant tab strip. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.pb-v5-footer{
  order:7!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  width:100%!important;
  margin:20px 0 0!important;
  padding:15px 0 0!important;
  border-top:1px solid #343348!important;
  color:#a8a5bb!important;
  font-size:12px!important;
  line-height:1.5!important;
}
.auth-panel.pb-auth-v5 .pb-v5-footer button{
  border:0!important;
  padding:3px!important;
  background:transparent!important;
  color:#bfa5ff!important;
  font-size:12px!important;
  font-weight:820!important;
}
.auth-panel.pb-auth-v5 .pb-v5-footer button:hover{text-decoration:underline!important}

/* Important: preserve phone verification's existing separate interaction. */
.auth-gate:not([hidden])>.auth-panel.pb-v4-phone-wait{
  width:min(100%,450px)!important;
  max-width:450px!important;
  max-height:calc(100dvh - 28px)!important;
}

/* Light mode keeps the same layout and crisp contrast. */
:root[data-theme="light"] .auth-gate:not([hidden]){
  background:radial-gradient(ellipse at 18% 8%,#b2a0f148,transparent 55%),
             radial-gradient(ellipse at 92% 86%,#9bcbf52d,transparent 50%),#eef0f9;
}
:root[data-theme="light"] .auth-gate:not([hidden])>.auth-panel.pb-auth-v5{
  background:linear-gradient(155deg,#fff,#f8f8ff)!important;
  border-color:#d8d4ed!important;
  box-shadow:0 28px 80px #29345b26!important;
}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-heading h1{color:#2b2447!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-heading p{color:#77728c!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-mode-nav,
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-method-grid{background:#f0eff8!important;border-color:#d9d5e7!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-mode-nav button:not(.active){color:#77718f!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-method-grid button:not([aria-pressed=true]){color:#6d6882!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-method-grid button[aria-pressed=true]{color:#4d3785!important;background:#e8e1ff!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form>label>span:first-child,
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-method-title{color:#514e68!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-field>input,
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-password-field{background:#f9f9fe!important;border-color:#d7d5e6!important;color:#27243a!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-password-field input{color:#27243a!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form input::placeholder{color:#858194!important}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v4-remember>span:last-child,
:root[data-theme="light"] .auth-panel.pb-auth-v5 .pb-v5-footer{color:#6b657f!important}

/* iPhone and embedded browser sizing: clear fields, no overflow, easy keyboard focus. */
@media(max-width:600px){
 .auth-gate:not([hidden]){padding:10px max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px))!important}
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5:not(.pb-v4-phone-wait){
   width:100%!important;
   max-width:490px!important;
   max-height:calc(100dvh - 20px)!important;
   border-radius:20px!important;
   padding:22px 20px 19px!important;
 }
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.auth-brandmark{
   margin:1px 0 16px!important;
 }
 .auth-panel.pb-auth-v5 .auth-brandmark>img{width:46px!important;height:46px!important}
 .auth-panel.pb-auth-v5 .auth-brandmark b{font-size:22px!important}
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.pb-v4-mode-nav{margin-bottom:16px!important}
 .auth-panel.pb-auth-v5 .pb-v4-mode-nav button{height:43px!important;min-height:43px!important;font-size:12.5px!important}
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.pb-v4-header{margin-bottom:16px!important}
 .auth-panel.pb-auth-v5 .pb-v4-heading h1{font-size:25px!important}
 .auth-panel.pb-auth-v5 .pb-v4-heading p{font-size:11.5px!important;line-height:1.7!important}
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.auth-form{gap:11px!important}
 .auth-panel.pb-auth-v5 .pb-v4-field>input,
 .auth-panel.pb-auth-v5 .auth-password-field{height:50px!important;min-height:50px!important}
 .auth-panel.pb-auth-v5 .auth-password-field input{height:48px!important;min-height:48px!important}
 .auth-panel.pb-auth-v5 .auth-form>.auth-submit{height:50px!important;min-height:50px!important}
 .auth-panel.pb-auth-v5 .pb-v4-method-grid button{height:43px!important;min-height:43px!important}
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.pb-v4-methods{margin-bottom:12px!important}
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5>.pb-v5-footer{margin-top:17px!important;padding-top:13px!important}
}
@media(max-width:360px){
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5:not(.pb-v4-phone-wait){padding:19px 15px 17px!important}
 .auth-panel.pb-auth-v5 .pb-v4-method-grid button{gap:5px!important}
 .auth-panel.pb-auth-v5 .pb-v4-method-grid button b{font-size:11px!important}
 .auth-panel.pb-auth-v5 .pb-v4-heading h1{font-size:23px!important}
 .auth-panel.pb-auth-v5 .pb-v4-remember>span:last-child,
 .auth-gate .auth-panel.pb-auth-v5 .pb-v4-login-options>.auth-forgot{font-size:10.5px!important}
}
@media(max-height:720px){
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5:not(.pb-v4-phone-wait){max-height:calc(100dvh - 14px)!important}
}
@media(prefers-reduced-motion:reduce){
 .auth-panel.pb-auth-v5 .auth-submit,
 .auth-panel.pb-auth-v5 .pb-v4-mode-nav button{transition:none!important}
}

/* Register is denser than login: fit the full phone/email form comfortably
   without clipping the bottom navigation on desktop or common iPhones. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register:not(.pb-v4-phone-wait){
  padding-top:21px!important;
  padding-bottom:18px!important;
}
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register>.auth-brandmark{
  margin-bottom:14px!important;
}
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register>.pb-v4-mode-nav{
  margin-bottom:13px!important;
}
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register>.pb-v4-header{
  margin-bottom:12px!important;
}
.auth-panel.pb-auth-v5.pb-auth-register .pb-v4-heading h1{font-size:27px!important}
.auth-panel.pb-auth-v5.pb-auth-register .pb-v4-heading p{margin-top:3px!important}
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register>.pb-v4-methods{
  margin-bottom:11px!important;
}
.auth-panel.pb-auth-v5.pb-auth-register .pb-v5-method-hint{margin-top:5px!important}
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register>.auth-form{
  gap:10px!important;
}
.auth-panel.pb-auth-v5.pb-auth-register .auth-form>label{gap:5px!important}
.auth-panel.pb-auth-v5.pb-auth-register .pb-v4-field>input,
.auth-panel.pb-auth-v5.pb-auth-register .auth-password-field{
  height:49px!important;min-height:49px!important;
}
.auth-panel.pb-auth-v5.pb-auth-register .auth-password-field input{
  height:47px!important;min-height:47px!important;
}
.auth-panel.pb-auth-v5.pb-auth-register .auth-form>.auth-submit{
  margin-top:2px!important;
}
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register>.pb-v5-footer{
  margin-top:14px!important;padding-top:12px!important;
}
@media(max-width:600px){
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register:not(.pb-v4-phone-wait){
   padding-top:18px!important;padding-bottom:16px!important;
 }
 .auth-panel.pb-auth-v5.pb-auth-register .pb-v4-heading h1{font-size:24px!important}
 .auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5.pb-auth-register>.auth-form{gap:9px!important}
 .auth-panel.pb-auth-v5.pb-auth-register .pb-v4-field>input,
 .auth-panel.pb-auth-v5.pb-auth-register .auth-password-field{
   height:48px!important;min-height:48px!important;
 }
 .auth-panel.pb-auth-v5.pb-auth-register .auth-password-field input{height:46px!important;min-height:46px!important}
}

/* On short screens keep field/button dimensions intact; scroll the card
   instead of squashing form sections into unusably small controls. */
.auth-gate:not([hidden])>.auth-panel.pb-auth-v4.pb-auth-v5:not(.pb-v4-phone-wait)>:is(
 .auth-brandmark,.pb-v4-mode-nav,.pb-v4-header,.pb-v4-methods,.auth-form,.auth-google-section,.pb-v5-footer
){
 flex:0 0 auto!important;
}

/* PUBLICBOOST auth v20261018.17
   Chrome/Safari password manager/autofill surfaces must use the theme's
   real input color, rather than the user-agent blue/gray or yellow fill.
   Does not modify autocomplete, password values, or the login flow. */
.auth-panel.pb-auth-v5 .auth-form .pb-v4-field > input:is(:-webkit-autofill,:autofill),
.auth-panel.pb-auth-v5 .auth-form .pb-v4-field > input:-webkit-autofill:hover,
.auth-panel.pb-auth-v5 .auth-form .pb-v4-field > input:-webkit-autofill:focus,
.auth-panel.pb-auth-v5 .auth-form .auth-password-field input:is(:-webkit-autofill,:autofill),
.auth-panel.pb-auth-v5 .auth-form .auth-password-field input:-webkit-autofill:hover,
.auth-panel.pb-auth-v5 .auth-form .auth-password-field input:-webkit-autofill:focus{
  -webkit-text-fill-color:#f3f3fc!important;
  caret-color:#f3f3fc!important;
  -webkit-box-shadow:0 0 0 1000px #11141f inset!important;
  box-shadow:0 0 0 1000px #11141f inset!important;
  background-clip:padding-box!important;
  transition:none!important;
}
.auth-panel.pb-auth-v5 .auth-form .pb-v4-field > input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px #151723 inset,0 0 0 3px rgba(149,108,229,.14)!important;
  box-shadow:0 0 0 1000px #151723 inset,0 0 0 3px rgba(149,108,229,.14)!important;
}
.auth-panel.pb-auth-v5 .auth-form .auth-password-field input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px #151723 inset!important;
  box-shadow:0 0 0 1000px #151723 inset!important;
}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form .pb-v4-field > input:is(:-webkit-autofill,:autofill),
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form .pb-v4-field > input:-webkit-autofill:hover,
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form .pb-v4-field > input:-webkit-autofill:focus,
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form .auth-password-field input:is(:-webkit-autofill,:autofill),
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form .auth-password-field input:-webkit-autofill:hover,
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form .auth-password-field input:-webkit-autofill:focus{
  -webkit-text-fill-color:#27243a!important;
  caret-color:#27243a!important;
  -webkit-box-shadow:0 0 0 1000px #f9f9fe inset!important;
  box-shadow:0 0 0 1000px #f9f9fe inset!important;
}
:root[data-theme="light"] .auth-panel.pb-auth-v5 .auth-form .pb-v4-field > input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px #f9f9fe inset,0 0 0 3px rgba(149,108,229,.17)!important;
  box-shadow:0 0 0 1000px #f9f9fe inset,0 0 0 3px rgba(149,108,229,.17)!important;
}
