/* ============================================================================ */
/* Auth modal — login / register / forgot in a single dialog                    */
/* ============================================================================ */

.psr-auth-overlay{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* Лёгкое затемнение как у Google — без блюра */
  background: rgba(32, 33, 36, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
}
.psr-auth-overlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .28s cubic-bezier(.2,.8,.2,1);
}

/* Когда модалка закрыта — НИЧЕГО внутри не ловит клики (даже формы с is-active) */
.psr-auth-overlay:not(.is-open),
.psr-auth-overlay:not(.is-open) *{
  pointer-events: none !important;
}

.psr-auth-modal{
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 94vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 50px 110px -24px rgba(15,17,21,.4),
    0 16px 36px -10px rgba(240,26,38,.22);
  padding: 40px 44px 32px;
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .26s;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Split variant: side photo + main form */
.psr-auth-modal-split{
  max-width: 880px;
  height: min(820px, 94vh);   /* увеличено с 720 до 820: вмещает 2 чекбокса + Sign in + OR + Google + footer */
  padding: 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
}
.psr-auth-modal-split::before{ display: none; }

.psr-auth-side{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0608 0%, #2a0a0d 100%);
  color: #fff;
  min-height: 560px;
}
.psr-auth-side-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .95;
  transform: scale(1.02);
  filter: saturate(1.1);
  transition: opacity .35s cubic-bezier(.2,.8,.2,1);
}
.psr-auth-side-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,17,21,.2) 0%, rgba(15,17,21,.6) 60%, rgba(15,17,21,.92) 100%),
    linear-gradient(200deg, rgba(240,26,38,.22) 0%, rgba(240,26,38,0) 50%);
  pointer-events: none;
}
.psr-auth-side-content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 28px 30px;
  z-index: 2;
}
.psr-auth-side-logo{
  height: 56px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)) brightness(1.25);
}
.psr-auth-quote{
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  padding: 0;
  letter-spacing: -.01em;
  text-shadow: 0 4px 22px rgba(0,0,0,.5);
  position: relative;
}
.psr-auth-quote-mark{
  display: inline-block;
  font-family: 'Georgia', serif;
  font-size: 64px;
  line-height: .8;
  color: #E30613;
  vertical-align: -22px;
  margin-right: 4px;
  text-shadow: 0 4px 18px rgba(240,26,38,.5);
  font-weight: 400;
}
.psr-auth-side-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.psr-auth-side-stat{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
}
.psr-auth-side-stat strong{
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  text-transform: none;
}

/* Main column of the split modal */
.psr-auth-main{
  padding: 36px 52px 28px 44px;   /* extra right padding — зарезервировано под × */
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Tabs не залезают на close-button */
.psr-auth-main .psr-auth-tabs{
  margin-right: 44px;
}
/* Wrapper — внутри него формы стакаются absolute и кросс-фейдят */
.psr-auth-forms{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -44px;      /* компенсируем горизонтальный padding main, чтобы форма тянулась на всю ширину */
}
/* Soft red glow accent at the top of main column */
.psr-auth-main::before{
  content: "";
  position: absolute;
  top: -90px; left: 50%;
  transform: translateX(-50%);
  width: 360px; height: 200px;
  background: radial-gradient(closest-side, rgba(240,26,38,.14), rgba(240,26,38,0));
  pointer-events: none;
  z-index: 0;
}
.psr-auth-main > *{ position: relative; z-index: 1; }

/* Hide mobile-only brand block on desktop (side panel has its own logo) */
@media (min-width: 721px){
  .psr-auth-brand-mobile{ display: none !important; }
}
.psr-auth-overlay.is-open .psr-auth-modal{
  transform: none;
  opacity: 1;
}

.psr-auth-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(15,17,21,.05);
  color: #3a3f4a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .2s;
  z-index: 20;
}
.psr-auth-close:hover{
  background: rgba(240,26,38,.1);
  color: #E30613;
  transform: rotate(90deg);
}

.psr-auth-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  text-align: center;
}
.psr-auth-brand-logo{
  display: inline-block;
  height: 64px;
  width: auto;
  margin: 0;
  filter: drop-shadow(0 8px 18px rgba(240,26,38,.24));
}
.psr-auth-brand-tag{
  font-size: 10.5px;
  font-weight: 800;
  color: #7a7e86;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-top: 2px;
}

.psr-auth-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #f2f4f8;
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 26px;
  position: relative;
  isolation: isolate;
}
/* Slide-indicator — плавно едет между вкладками */
.psr-auth-tabs::before{
  content: "";
  position: absolute;
  top: 5px; bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px -2px rgba(15,17,21,.14), 0 1px 0 rgba(255,255,255,.9) inset;
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
  pointer-events: none;
}
.psr-auth-tabs[data-tabs-mode="register"]::before{
  transform: translateX(100%);
}
.psr-auth-tab{
  appearance: none;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 800;
  color: #5b5f66;
  letter-spacing: .04em;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: color .28s cubic-bezier(.2,.8,.2,1), transform .2s;
  position: relative;
  z-index: 1;
  font-family: inherit;
}
.psr-auth-tab:hover{ color: #0f1115; }
.psr-auth-tab.is-active{
  color: #0f1115;
}

.psr-auth-heading{
  font-size: 26px;
  font-weight: 900;
  color: #0f1115;
  letter-spacing: -.015em;
  margin: 0 0 6px;
  line-height: 1.18;
}
.psr-auth-sub{
  font-size: 14.5px;
  color: #5b5f66;
  margin: 0 0 22px;
  line-height: 1.5;
}

/* Split-modal versions: stack and cross-fade inside .psr-auth-forms */
.psr-auth-modal-split .psr-auth-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: absolute;
  inset: 0;
  padding: 4px 44px 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(10px) scale(.992);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity   .32s cubic-bezier(.2,.8,.2,1),
    transform .38s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear .4s;
}
.psr-auth-modal-split .psr-auth-form.is-active{
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity   .32s cubic-bezier(.2,.8,.2,1),
    transform .38s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear 0s;
}

/* Fallback (non-split — если модалка когда-то откроется без split-layout) */
.psr-auth-modal:not(.psr-auth-modal-split) .psr-auth-form{
  display: none;
  flex-direction: column;
  gap: 14px;
}
.psr-auth-modal:not(.psr-auth-modal-split) .psr-auth-form.is-active{
  display: flex;
}

.psr-auth-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.psr-auth-field{
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.psr-auth-field label{
  font-size: 11px;
  font-weight: 800;
  color: #3a3f4a;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-left: 2px;
  margin: 0;
}
.psr-auth-field label .req{
  color: #E30613;
  margin-left: 2px;
}
.psr-auth-field input{
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid #e3e6ec;
  background: #fff;
  color: #0f1115;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  box-sizing: border-box;
}
.psr-auth-field input::placeholder{ color: #9ba0a7; }
.psr-auth-field input:focus{
  outline: none;
  border-color: #E30613;
  box-shadow: 0 0 0 4px rgba(240,26,38,.12);
  background: #fffefe;
}
.psr-auth-field.has-error input{
  border-color: #E30613;
  box-shadow: 0 0 0 4px rgba(240,26,38,.1);
}
.psr-auth-field-error{
  font-size: 11.5px;
  color: #E30613;
  font-weight: 700;
  padding-left: 2px;
  min-height: 14px;
}

.psr-auth-password-wrap{
  position: relative;
  display: block;
}
.psr-auth-password-toggle{
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a8e96;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.psr-auth-password-toggle:hover{ color: #E30613; background: rgba(240,26,38,.08); }
.psr-auth-password-toggle svg{ width: 18px; height: 18px; }

.psr-auth-alert{
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: none;
}
.psr-auth-alert.is-visible{ display: block; }
.psr-auth-alert.is-error{
  background: rgba(240,26,38,.08);
  color: #c20613;
  border: 1px solid rgba(240,26,38,.24);
}
.psr-auth-alert.is-success{
  background: rgba(18,185,129,.1);
  color: #0a8a5f;
  border: 1px solid rgba(18,185,129,.22);
}

.psr-auth-submit{
  height: 54px;
  border-radius: 13px;
  border: 0;
  background: linear-gradient(180deg, #ff4652 0%, #E30613 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 12px 26px -6px rgba(240,26,38,.55), 0 1px 0 rgba(255,255,255,.22) inset;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.psr-auth-submit::before{
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.3) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left .8s cubic-bezier(.2,.8,.2,1);
}
.psr-auth-submit:hover::before{ left: 160%; }
.psr-auth-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -6px rgba(240,26,38,.6), 0 1px 0 rgba(255,255,255,.2) inset;
}
.psr-auth-submit:active{ transform: translateY(0); }
.psr-auth-submit[disabled]{
  opacity: .7;
  cursor: wait;
}
.psr-auth-submit .psr-auth-spinner{
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: psrAuthSpin .8s linear infinite;
  display: none;
}
.psr-auth-submit[data-loading="true"] .psr-auth-spinner{ display: inline-block; }
.psr-auth-submit[data-loading="true"] .psr-auth-label{ opacity: .7; }
@keyframes psrAuthSpin{ to { transform: rotate(360deg); } }

.psr-auth-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,17,21,.06);
  font-size: 13px;
}
.psr-auth-foot a{
  color: #E30613;
  font-weight: 700;
  text-decoration: none;
}
.psr-auth-foot a:hover{ text-decoration: underline; }
.psr-auth-foot .muted{ color: #5b5f66; font-weight: 500; }

.psr-auth-legal{
  font-size: 11.5px;
  color: #7a7e86;
  line-height: 1.45;
  margin-top: 4px;
}
.psr-auth-legal a{ color: #5b5f66; text-decoration: underline; }

/* ===== Multi-step flow ===== */
.psr-auth-step{
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: psrAuthStepIn .28s cubic-bezier(.2,.8,.2,1);
}
/* Step 1 = type select (любой type) */
.psr-auth-form[data-step="1"] .psr-auth-step-1{ display: flex; }
/* Private: Step 2 = compact fields */
.psr-auth-form[data-type="private"][data-step="2"] .psr-auth-step-private{ display: flex; }
/* Business: sub-steps */
.psr-auth-form[data-type="business"][data-step="2"] .psr-auth-step-biz-1{ display: flex; }
.psr-auth-form[data-type="business"][data-step="3"] .psr-auth-step-biz-2{ display: flex; }
.psr-auth-form[data-type="business"][data-step="4"] .psr-auth-step-biz-3{ display: flex; }
.psr-auth-form[data-type="business"][data-step="5"] .psr-auth-step-biz-4{ display: flex; }

@keyframes psrAuthStepIn{
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

/* Step-indicator (Business) */
.psr-auth-steps-indicator{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5b5f66;
}
.psr-auth-steps-indicator strong{
  color: var(--psr-red, #E30613);
  font-weight: 900;
}

/* 3-column row for house/flat/zip */
.psr-auth-row-3{
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
}

/* Select element — подогнан под другие инпуты */
.psr-auth-field select{
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid #e3e6ec;
  background: #fff;
  color: #0f1115;
  font-size: 15px;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%235b5f66' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}
.psr-auth-field select:focus{
  outline: none;
  border-color: #E30613;
  box-shadow: 0 0 0 4px rgba(240,26,38,.12);
}

/* Wrapper для двух чекбоксов (стэк вертикально) */
.psr-auth-checkboxes{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 4px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(15, 17, 21, 0.06);
}
/* Compact-вариант: над Sign in button — меньше, серый текст, без border-top */
.psr-auth-checkboxes--compact{
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 4px 0 10px !important;
  gap: 2px !important;
}
.psr-auth-checkboxes--compact .psr-auth-agree{
  font-size: 11.5px !important;
  color: #7a7e86 !important;       /* серый */
  gap: 8px !important;
  padding: 2px 0 !important;
  line-height: 1.35 !important;
}
.psr-auth-checkboxes--compact .psr-auth-agree input[type="checkbox"]{
  width: 14px !important;
  height: 14px !important;
  border-radius: 3px !important;
  border-width: 1px !important;
  margin: 1px 0 0 0 !important;
}
.psr-auth-checkboxes--compact .psr-auth-agree input[type="checkbox"]:checked::after{
  left: 4px !important;
  top: 1px !important;
  width: 3px !important;
  height: 7px !important;
  border-width: 0 1.5px 1.5px 0 !important;
  transform: rotate(45deg) !important;
}
/* Подсветка required-чекбокса если submit нажали без галочки */
.psr-auth-agree.is-error input[type="checkbox"]{
  border-color: #E30613 !important;
  box-shadow: 0 0 0 2px rgba(240,26,38,.18) !important;
}
.psr-auth-agree.is-error{
  color: #E30613 !important;
}

/* Agree-checkbox — custom styled (OpenSanctions-style outlined square) */
.psr-auth-agree{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #1f2329;
  cursor: pointer;
  line-height: 1.45;
  user-select: none;
  padding: 4px 0;
}
.psr-auth-agree input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0 0;
  padding: 0;
  border: 1.5px solid #c8ccd4;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  display: inline-block;
  vertical-align: middle;
}
.psr-auth-agree input[type="checkbox"]:hover{
  border-color: #1f2329;
}
.psr-auth-agree input[type="checkbox"]:focus-visible{
  outline: 2px solid rgba(240, 26, 38, 0.35);
  outline-offset: 1px;
}
.psr-auth-agree input[type="checkbox"]:checked{
  background: #E30613;
  border-color: #E30613;
}
.psr-auth-agree input[type="checkbox"]:checked::after{
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.psr-auth-agree a{ color: #E30613; font-weight: 600; text-decoration: none; }
.psr-auth-agree a:hover{ text-decoration: underline; }
.psr-auth-agree > span{ flex: 1 1 auto; min-width: 0; }

/* ===== Compact heading (step 2) ===== */
.psr-auth-heading-sm{
  font-size: 20px !important;
  margin-bottom: 4px !important;
}

/* ===== Back-link / crumb ===== */
.psr-auth-crumb{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.psr-auth-back{
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #5b5f66;
  cursor: pointer;
  padding: 6px 10px 6px 6px;
  border-radius: 8px;
  transition: background .2s, color .2s, transform .2s;
  margin-left: -8px;
}
.psr-auth-back svg{ width: 16px; height: 16px; }
.psr-auth-back:hover{ color: #E30613; background: rgba(240,26,38,.08); transform: translateX(-2px); }
.psr-auth-crumb-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240,26,38,.08);
  border: 1px solid rgba(240,26,38,.2);
  color: #c20613;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.psr-auth-crumb-badge .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4652, #E30613);
}

/* ===== Type-switch (Private / Business) ===== */
.psr-auth-typeswitch{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.psr-auth-typeswitch-big{
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 6px 0 2px;
}
.psr-auth-type{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #e3e6ec;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
  user-select: none;
}
.psr-auth-type input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.psr-auth-type-icon{
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f2f4f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b5f66;
  transition: background .2s, color .2s;
}
.psr-auth-type-icon svg{ width: 20px; height: 20px; }
.psr-auth-type-body{ display: flex; flex-direction: column; line-height: 1.2; gap: 2px; min-width: 0; }
.psr-auth-type-title{ font-size: 14px; font-weight: 800; color: #0f1115; }
.psr-auth-type-sub{ font-size: 11px; font-weight: 600; color: #7a7e86; letter-spacing: .04em; }
.psr-auth-type:hover{
  border-color: rgba(240,26,38,.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(240,26,38,.2);
}
.psr-auth-type:hover .psr-auth-type-icon{
  background: rgba(240,26,38,.1);
  color: #E30613;
}
.psr-auth-type:hover .psr-auth-type-chev{ transform: translateX(4px); color: #E30613; }

.psr-auth-type.is-checked{
  border-color: #E30613;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  box-shadow: 0 0 0 4px rgba(240,26,38,.1), 0 6px 18px -6px rgba(240,26,38,.18);
}
.psr-auth-type.is-checked .psr-auth-type-icon{
  background: linear-gradient(135deg, #ff4652, #E30613);
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(240,26,38,.35);
}

/* Big version (step 1 — single column cards) */
.psr-auth-type-big{
  padding: 20px 22px;
  gap: 16px;
  border-radius: 16px;
  border-width: 1.8px;
}
.psr-auth-type-big .psr-auth-type-icon{
  width: 48px; height: 48px;
  border-radius: 13px;
}
.psr-auth-type-big .psr-auth-type-icon svg{ width: 26px; height: 26px; }
.psr-auth-type-big .psr-auth-type-title{ font-size: 17px; }
.psr-auth-type-big .psr-auth-type-sub{ font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 500; color: #5b5f66; }
.psr-auth-type-chev{
  margin-left: auto;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ba0a7;
  transition: transform .25s, color .25s;
}
.psr-auth-type-chev svg{ width: 18px; height: 18px; }

/* Conditional business fields — hidden unless type=business */
.psr-auth-business-only{ display: none; }
.psr-auth-form[data-type="business"] .psr-auth-business-only{ display: grid; }

/* ===== Success state — overlays the form on successful login/register ===== */
.psr-auth-success{
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 10px 30px;
  text-align: center;
}
.psr-auth-form.is-success .psr-auth-success{
  display: flex;
  animation: psrAuthSuccessFade .3s cubic-bezier(.2,.8,.2,1);
}
.psr-auth-form.is-success > *:not(.psr-auth-success){
  display: none !important;
}
@keyframes psrAuthSuccessFade{
  from { opacity: 0; }
  to   { opacity: 1; }
}
.psr-auth-success-icon{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12b981 0%, #0a8a5f 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 40px -10px rgba(18,185,129,.55),
    0 0 0 10px rgba(18,185,129,.12);
  position: relative;
  animation: psrAuthIconPop .55s cubic-bezier(.2,1.2,.4,1) .05s backwards;
}
.psr-auth-success-icon::after{
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(18,185,129,.5);
  animation: psrAuthIconPulse 1.8s ease-out .5s infinite;
}
.psr-auth-success-icon svg{
  width: 52px; height: 52px;
}
.psr-auth-check-path{
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: psrAuthCheckDraw .45s cubic-bezier(.2,.8,.2,1) .35s forwards;
}
@keyframes psrAuthCheckDraw{ to { stroke-dashoffset: 0; } }
@keyframes psrAuthIconPop{
  from { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes psrAuthIconPulse{
  0%   { box-shadow: 0 0 0 0 rgba(18,185,129,.45); }
  70%  { box-shadow: 0 0 0 22px rgba(18,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,185,129,0); }
}
.psr-auth-success-title{
  font-size: 24px;
  font-weight: 900;
  color: #0f1115;
  letter-spacing: -.01em;
  margin: 6px 0 0;
  animation: psrAuthTextIn .45s cubic-bezier(.2,.8,.2,1) .25s backwards;
}
.psr-auth-success-sub{
  font-size: 14px;
  color: #5b5f66;
  line-height: 1.5;
  max-width: 340px;
  margin: 0;
  animation: psrAuthTextIn .45s cubic-bezier(.2,.8,.2,1) .35s backwards;
}
.psr-auth-success-countdown{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18,185,129,.1);
  border: 1px solid rgba(18,185,129,.22);
  color: #0a8a5f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 6px;
  animation: psrAuthTextIn .45s cubic-bezier(.2,.8,.2,1) .45s backwards;
}
.psr-auth-success-countdown strong{
  font-size: 15px;
  color: #0a8a5f;
  font-weight: 900;
  letter-spacing: 0;
}
@keyframes psrAuthTextIn{
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ===== Google Sign-In button + "or" divider ===== */
.psr-auth-google-block{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 2px 0 14px;
}
/* Красивая custom Google-кнопка */
.psr-auth-google-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 50px;
  width: 100%;
  border: 1.5px solid #e3e6ec;
  background: #ffffff;
  color: #1a1d22;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s, background-color .2s;
}
.psr-auth-google-btn:hover{
  border-color: rgba(15,17,21,.22);
  box-shadow: 0 6px 16px -6px rgba(15,17,21,.14);
  transform: translateY(-1px);
  background: #fafbfd;
}
.psr-auth-google-btn:disabled{ cursor: wait; opacity: .7; }
.psr-auth-google-btn svg{
  width: 20px !important; height: 20px !important;
  flex: 0 0 20px;
}

.psr-auth-or{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ba0a7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 2px 0;
}
.psr-auth-or::before,
.psr-auth-or::after{
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,17,21,.12), transparent);
}

/* Hidden native Google button — keep it invisible, used only as API handle */
.g_id_signin-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
  opacity: 0;
}

/* Mobile / tablet — стакать колонки, прятать фото */
@media (max-width: 720px){
  .psr-auth-modal-split{
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .psr-auth-side{ display: none !important; }
  .psr-auth-main{
    padding: 30px 26px 26px;
    max-height: 94vh;
  }
}
@media (max-width: 540px){
  .psr-auth-modal-split{ border-radius: 18px; }
  .psr-auth-main{ padding: 22px 20px 20px; }
  .psr-auth-heading{ font-size: 22px; line-height: 1.2; margin-top: 6px; }
  .psr-auth-row{ grid-template-columns: 1fr; gap: 14px; }
  .psr-auth-brand-logo{ height: 40px; }
  .psr-auth-typeswitch{ grid-template-columns: 1fr; }
  .psr-auth-type{ padding: 12px 14px; }
  /* Footer links: вертикально, центрированные */
  .psr-auth-foot{
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding-top: 16px;
    margin-top: 14px;
    font-size: 13.5px;
  }
  .psr-auth-foot > *{
    width: 100%;
    text-align: center;
    line-height: 1.4;
  }
  .psr-auth-foot a{ display: inline; white-space: nowrap; }
  /* Submit button — крупнее текст */
  .psr-auth-submit{ font-size: 18px !important; font-weight: 800 !important; padding: 16px !important; border-radius: 14px !important; }
  /* Subtitle короче */
  .psr-auth-sub{ font-size: 14px !important; line-height: 1.45 !important; margin-bottom: 18px !important; }
  /* Поля ввода — крупнее на тач-устройствах */
  .psr-auth-input{
    font-size: 15px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    min-height: 46px;
  }
  .psr-auth-label{ font-size: 11px !important; letter-spacing: .12em !important; }
  .psr-auth-field{ gap: 6px; }
  /* Tabs — переключатель центрированный, на всю ширину */
  .psr-auth-tabs{
    padding: 4px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .psr-auth-tab{ font-size: 14px !important; padding: 11px !important; }
  /* Sign in button — крупнее текст */
  .psr-auth-submit{
    font-size: 18px !important;
    font-weight: 800 !important;
    padding: 16px !important;
    border-radius: 14px !important;
    letter-spacing: .01em !important;
  }
  .psr-auth-submit .psr-auth-label{ font-size: 18px !important; font-weight: 800 !important; }
}

@media (max-width: 380px){
  .psr-auth-main{ padding: 20px 16px 18px; }
  .psr-auth-heading{ font-size: 20px; }
  .psr-auth-sub{ font-size: 13px !important; }
  .psr-auth-foot{ font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce){
  .psr-auth-overlay,
  .psr-auth-modal{ transition: none; }
  .psr-auth-submit .psr-auth-spinner{ animation-duration: 1.6s; }
}


/* ============================================================================ */
/* GOOGLE SIGN-IN BUTTON + DIVIDER                                              */
/* ============================================================================ */
.psr-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #9aa0a8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.psr-auth-divider::before,
.psr-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,17,21,0.12), transparent);
}
.psr-auth-divider span { padding: 0 4px; }

.psr-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d5d8e0;
  border-radius: 12px;
  background: #fff;
  color: #1f2329;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease, background .25s ease;
}
.psr-auth-google:hover {
  border-color: #4285F4;
  background: #f8fbff;
  box-shadow: 0 4px 14px -2px rgba(66, 133, 244, 0.18);
  transform: translateY(-1px);
}
.psr-auth-google:active {
  transform: translateY(0);
}
.psr-auth-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================================ */
/* PASSWORD REQUIREMENTS POPUP                                                  */
/* ============================================================================ */
.psr-auth-field {
  position: relative;
}
.psr-auth-pwd-requirements {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  /* Wise-style + popup: розовая карточка, выпадает под полем */
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fce8e9;
  border: 1px solid rgba(15, 17, 21, 0.06);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #1f2329;
  box-shadow:
    0 4px 12px -2px rgba(15, 17, 21, 0.10),
    0 12px 28px -8px rgba(15, 17, 21, 0.14);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .25s ease;
  pointer-events: none;
  white-space: normal;
}
/* Когда все правила выполнены — карточка становится зелёной */
.psr-auth-pwd-requirements.is-all-valid {
  background: #e6f4ea;
}
/* Маленький уголок-стрелка сверху, цветом совпадающий с карточкой */
.psr-auth-pwd-requirements::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: #fce8e9;
  border-left: 1px solid rgba(15, 17, 21, 0.06);
  border-top: 1px solid rgba(15, 17, 21, 0.06);
  transform: rotate(45deg);
  transition: background .25s ease;
}
.psr-auth-pwd-requirements.is-all-valid::before {
  background: #e6f4ea;
}
/* Показывается когда поле в фокусе или когда есть содержимое */
.psr-auth-field:focus-within .psr-auth-pwd-requirements,
.psr-auth-pwd-requirements.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* Показывается когда поле в фокусе или при вводе */
.psr-auth-field:focus-within .psr-auth-pwd-requirements,
.psr-auth-pwd-requirements.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* Wise-style: каждое правило с цветным круглым иконом-статусом */
.psr-auth-pwd-requirements li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  line-height: 1.3;
  transition: color .25s ease;
  white-space: normal;
  font-weight: 500;
}
/* Дефолт (невалидно): красный кружок с белым X */
.psr-auth-pwd-requirements li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #d33333;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  transition: background-color .25s ease, background-image .25s ease;
}
/* Когда правило выполнено — зелёный кружок с галочкой */
.psr-auth-pwd-requirements li.is-valid::before {
  background-color: #1e8e3e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E");
}

/* Submit-кнопка регистрации, заблокированная из-за невалидного пароля */
.psr-auth-submit.is-pwd-invalid,
.psr-auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}


/* ============================================================================ */
/* MOBILE HARDENING (2026-05-19) — модалка обрезалась справа на узких экранах   */
/* Все элементы внутри гарантированно влезают в viewport, никакого overflow-x.  */
/* ============================================================================ */
@media (max-width: 720px) {
  /* Overlay меньше padding чтобы дать модалке больше воздуха */
  .psr-auth-overlay {
    padding: 10px !important;
  }
  /* Modal принудительно ограничен по ширине viewport, никаких выходов за края */
  .psr-auth-modal,
  .psr-auth-modal-split {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }
  /* Грид-колонки на split — гарантировано 1fr, side-image скрыт */
  .psr-auth-modal-split {
    grid-template-columns: 1fr !important;
  }
  .psr-auth-side {
    display: none !important;
  }
  /* Main-секция: paddings ужаты, content fits */
  .psr-auth-main {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 22px 18px 20px !important;
    overflow-x: hidden !important;
  }
  /* Все формы и flex-контейнеры — гарантия не вылезать */
  .psr-auth-form,
  .psr-auth-google-block,
  .psr-auth-foot,
  .psr-auth-divider,
  .psr-auth-tabs,
  .psr-auth-field,
  .psr-auth-google,
  .psr-auth-google-btn,
  .psr-auth-submit,
  .psr-auth-input {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  /* Footer-линки (Forgot / Create account) — wrap в две строки если узко */
  .psr-auth-foot {
    flex-wrap: wrap !important;
  }
  /* Google-кнопка: ужать чтобы "Continue with Google" влезло даже при font-scaling.
     Текст 14px bold ≈ 160px; при OS-font-scaling 1.2× = ~192px и не вмещался. */
  .psr-auth-google,
  .psr-auth-google-btn {
    padding: 11px 12px !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
    overflow: visible !important;
  }
  .psr-auth-google > svg,
  .psr-auth-google > img,
  .psr-auth-google-btn > svg,
  .psr-auth-google-btn > img,
  .psr-auth-google-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }
  .psr-auth-google > span,
  .psr-auth-google-btn > span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }
}

@media (max-width: 380px) {
  /* На самых узких экранах ещё ужимаем */
  .psr-auth-overlay { padding: 6px !important; }
  .psr-auth-modal,
  .psr-auth-modal-split { max-width: calc(100vw - 12px) !important; }
  .psr-auth-main { padding: 18px 14px 16px !important; }
  .psr-auth-google,
  .psr-auth-google-btn { padding: 10px 12px !important; font-size: 13px !important; }
  .psr-auth-submit { font-size: 16px !important; padding: 14px !important; }
}


/* ============================================================================ */
/* MOBILE COMPACT LAYOUT (2026-05-19) — поднять контент наверх, убрать flex-spread */
/* Юзер: "ВИДИШЬ НЕ ВИДНО ПОДНЕМИ ВСЕ НАВЕРХ, СНИЗЬ ОТСТУПЫ display: flex УБЕРИ"   */
/* ============================================================================ */
@media (max-width: 720px) {
  /* 2026-05-22: модалка прижата к верху + auto-height по контенту.
     Раньше display:grid растягивал rows → main забирал всю высоту 95vh →
     внизу было ~200px белой пустоты. */
  .psr-auth-overlay {
    align-items: flex-start !important;
    padding: 20px 12px !important;
  }
  .psr-auth-modal-split {
    display: block !important;          /* было grid → растягивал rows */
    height: auto !important;
    max-height: calc(100vh - 40px) !important;
    min-height: 0 !important;
    overflow-y: auto !important;        /* если контент длинный — скролл внутри модалки */
  }
  /* Main без flex и overflow:hidden — пусть содержимое течёт сверху вниз нормально */
  .psr-auth-main {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 28px 18px 18px !important;  /* +14px top: контент чуть ниже от header'а модалки */
    overflow: visible !important;
  }
  .psr-auth-main .psr-auth-tabs {
    margin-right: 40px !important;        /* зарезервировано под × close */
    margin-bottom: 10px !important;
  }
  /* Wrapper форм — убираем absolute, чтобы формы шли flow-ом */
  .psr-auth-forms {
    position: static !important;
    margin: 0 !important;
    flex: none !important;
    min-height: 0 !important;
  }
  .psr-auth-modal-split .psr-auth-form {
    position: static !important;
    inset: auto !important;
    padding: 0 !important;
    gap: 8px !important;                  /* было 14 — компактнее */
    overflow: visible !important;
    /* keep cross-fade by opacity, but no transform для предсказуемости */
    transform: none !important;
  }
  /* 2026-05-22: неактивная форма скрыта display:none (раньше была visibility:
     hidden + position:absolute с cross-fade — на mobile static layout оставил
     обе формы в DOM-flow, и .psr-auth-forms суммировал высоту обоих = 971px
     → модалка стрейтчилась до max-height с пустотой под login). */
  .psr-auth-modal-split .psr-auth-form:not(.is-active) {
    display: none !important;
  }
  /* Brand-блок — ужать, не съедать половину высоты */
  .psr-auth-brand {
    gap: 2px !important;
    margin-bottom: 8px !important;
  }
  .psr-auth-brand-logo {
    height: 36px !important;
  }
  .psr-auth-brand-tag {
    font-size: 10.5px !important;
    letter-spacing: .15em !important;
  }
  /* Heading + Sub — ужать */
  .psr-auth-heading {
    font-size: 19px !important;
    margin: 0 0 2px !important;
  }
  .psr-auth-sub {
    font-size: 13px !important;
    margin: 0 0 10px !important;
    line-height: 1.4 !important;
  }
  /* Tabs — компактнее */
  .psr-auth-tabs {
    margin-bottom: 6px !important;
  }
  .psr-auth-tab {
    padding: 9px 12px !important;
    font-size: 13.5px !important;
  }
  /* Поля */
  .psr-auth-field {
    gap: 3px !important;
  }
  .psr-auth-field label {
    font-size: 11px !important;
    letter-spacing: .1em !important;
  }
  .psr-auth-field input {
    padding: 10px 12px !important;
    font-size: 14.5px !important;
    border-radius: 10px !important;
  }
  /* Submit — компактнее, не огромная кнопка */
  .psr-auth-submit {
    padding: 12px !important;
    font-size: 15.5px !important;
    margin-top: 4px !important;
    border-radius: 10px !important;
  }
  /* Divider OR — узкий зазор */
  .psr-auth-divider {
    margin: 8px 0 !important;
  }
  /* Google-block — без лишних margin */
  .psr-auth-google-block {
    margin: 0 !important;
  }
  /* Footer (Forgot password / Create account) — НЕ flex, а block-stack,
     центрированный, без border-top и большого padding. Как в OpenSanctions-примере. */
  .psr-auth-foot {
    display: block !important;
    text-align: center !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(15,17,21,.06) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .psr-auth-foot > * {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }
  .psr-auth-foot a {
    display: inline-block !important;
    padding: 4px 0 !important;
  }
  /* Close-кнопка — крупный tap-target (≥44×44 как рекомендует Apple HIG)
     с учётом iOS safe-area-inset на устройствах с notch */
  .psr-auth-close {
    top: max(12px, env(safe-area-inset-top, 0px)) !important;
    right: max(12px, env(safe-area-inset-right, 0px)) !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 24px !important;
    z-index: 100 !important;
    background: rgba(255,255,255,.95) !important;
    box-shadow: 0 2px 8px rgba(15,17,21,.18) !important;
  }
  /* Расширяем tap-зону через ::after на 8px со всех сторон без визуального
     изменения — рука часто промахивается мимо маленькой кнопки */
  .psr-auth-close::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
  /* Убираем красный glow ::before который добавлял "воздух" сверху */
  .psr-auth-main::before {
    display: none !important;
  }
}

@media (max-width: 380px) {
  /* Ещё меньше отступы на самых узких экранах */
  .psr-auth-main { padding: 12px 12px 12px !important; }
  .psr-auth-brand-logo { height: 32px !important; }
  .psr-auth-heading { font-size: 17px !important; }
  .psr-auth-sub { font-size: 12.5px !important; margin-bottom: 8px !important; }
  .psr-auth-modal-split .psr-auth-form { gap: 6px !important; }
}
