.shocx-auth-popup__form {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.shocx-auth-popup__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 24px;
  scrollbar-color: #1a1a1a #ffffff;
  scrollbar-width: thin;
}
.shocx-auth-popup__body::-webkit-scrollbar { width: 4px; background-color: transparent; }
.shocx-auth-popup__body::-webkit-scrollbar-thumb { background-color: #1a1a1a; border-radius: 2px; }
.shocx-auth-popup__field {
  margin-bottom: 22px;
}

.shocx-auth-popup__label {
  display: block;
  font-family: 'Golos UI', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #9a9a9a;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 10px;
}

.shocx-auth-popup__input {
  width: 100%;
  font-family: 'Normalidad Text', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #ececec;
  background: transparent;
  letter-spacing: -0.005em;
  border-radius: 0;
  transition: border-color 220ms cubic-bezier(0.23, 1, 0.32, 1);
  outline: 0;
}
.shocx-auth-popup__input:focus { border-bottom-color: #1a1a1a; }
.shocx-auth-popup__input::placeholder { color: #bbb; }
.shocx-auth-popup__phone {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 60px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fafafa;
  overflow: hidden;
}
.shocx-auth-popup__phone:focus-within { border-color: #1a1a1a; }
.shocx-auth-popup__phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 54px;
  border-right: 1px solid #e3e3e3;
  font-family: 'Normalidad Text', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #9a9a9a;
}
.shocx-auth-popup__phone-input.shocx-auth-popup__input {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font-family: 'Normalidad Text', sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #1a1a1a;
  letter-spacing: 0;
}
.shocx-auth-popup__phone-input::placeholder { color: #c4c4c4; font-weight: 400; }
.shocx-auth-popup__pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ececec;
  transition: border-color 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.shocx-auth-popup__pwd-wrap:focus-within { border-bottom-color: #1a1a1a; }
.shocx-auth-popup__pwd-wrap .shocx-auth-popup__input { border-bottom: 0; flex: 1; }

.shocx-auth-popup__pwd-toggle {
  font-family: 'Golos UI', sans-serif;
  font-size: 11px;
  color: #888;
  padding: 12px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 200ms ease;
}
.shocx-auth-popup__pwd-toggle:hover { color: #1a1a1a; }
.shocx-auth-popup__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 24px;
}

.shocx-auth-popup__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Golos UI', sans-serif;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.04em;
}
.shocx-auth-popup__remember input {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #1a1a1a;
}

.shocx-auth-popup__lnk {
  font-family: 'Golos UI', sans-serif;
  font-size: 12px;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-bottom-color 0.2s ease;
}
.shocx-auth-popup__lnk:hover { border-bottom-color: #1a1a1a; }
.shocx-auth-popup__split {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 20px;
  font-family: 'Golos UI', sans-serif;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.shocx-auth-popup__split::before,
.shocx-auth-popup__split::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ececec;
}
.shocx-auth-popup__btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 100px;
  font-family: 'Normalidad Text', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.shocx-auth-popup__btn-secondary:hover { background: #1a1a1a; color: #fff; }
.shocx-auth-popup__btn-secondary:active { transform: scale(0.97); transition-duration: 100ms; }
.shocx-auth-popup__code-hint {
  font-family: 'Golos UI', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
  margin: 0 0 16px;
}
.shocx-auth-popup__code-hint span { color: #1a1a1a; font-weight: 500; white-space: nowrap; }
.shocx-auth-popup__code {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 360px;
}
.shocx-auth-popup__code-cell {
  width: 100%;
  min-width: 0;
  height: 56px;
  text-align: center;
  font-family: 'Normalidad Text', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  outline: 0;
  caret-color: transparent;
  -moz-appearance: textfield;
  transition: border-color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.shocx-auth-popup__code-cell::placeholder { color: #c0c0c0; font-weight: 400; }
.shocx-auth-popup__code-cell::-webkit-outer-spin-button,
.shocx-auth-popup__code-cell::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shocx-auth-popup__code-cell:focus { border-color: #1a1a1a; }
.shocx-auth-popup__resend {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 4px;
  text-align: center;
  background: transparent;
  border: 0;
  font-family: 'Golos UI', sans-serif;
  font-size: 13px;
  color: #aaa;
  cursor: default;
  transition: color 200ms ease;
}
.shocx-auth-popup__resend:not([disabled]) {
  color: #1a1a1a;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shocx-auth-popup__back {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 4px;
  text-align: center;
  background: transparent;
  border: 0;
  font-family: 'Golos UI', sans-serif;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: color 200ms ease;
}
.shocx-auth-popup__back:hover { color: #1a1a1a; }
.shocx-auth-popup__error {
  margin: 16px 28px 0;
  font-family: 'Golos UI', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: #a10000;
}
#auth_popup .pop-title {
  padding-bottom: 34px;
}
.shocx-auth-popup__foot {
  flex-shrink: 0;
  padding: 34px 28px 28px;
  border-top: 1px solid #1a1a1a;
  background: #ffffff;
}

.shocx-auth-popup .shocx-auth-popup__foot .submit-btn {
  width: 100%;
  height: 56px;
  border-radius: 100px;
  font-family: 'Normalidad Text', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.shocx-auth-popup .shocx-auth-popup__foot .submit-btn::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transform: translateY(-1px);
  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='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.shocx-auth-popup .shocx-auth-popup__foot .submit-btn.is-noarrow::after { display: none; }
.shocx-auth-popup__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
  border-bottom: 1px solid #ececec;
  color: #1a1a1a;
  font-family: 'Normalidad Text', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: padding-left 240ms cubic-bezier(0.23, 1, 0.32, 1), color 200ms ease;
}
.shocx-auth-popup__link:last-of-type { border-bottom: 0; }
.shocx-auth-popup__link svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  color: #888;
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1), color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .shocx-auth-popup__link:hover { padding-left: 12px; }
  .shocx-auth-popup__link:hover svg { color: #1a1a1a; transform: translateX(2px); }
}

.shocx-auth-popup__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 100px;
  font-family: 'Normalidad Text', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.shocx-auth-popup__logout:hover { background: #1a1a1a; color: #fff; }
.shocx-auth-popup__logout:active { transform: scale(0.97); transition-duration: 100ms; }
@media (max-width: 960px) {
  .shocx-auth-popup__body { padding: 20px 20px; }
  .shocx-auth-popup__foot { padding: 18px 20px 22px; }
  .shocx-auth-popup .shocx-auth-popup__foot .submit-btn { height: 52px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .shocx-auth-popup__input,
  .shocx-auth-popup__pwd-wrap,
  .shocx-auth-popup__btn-secondary,
  .shocx-auth-popup__link,
  .shocx-auth-popup__logout { transition: border-color 200ms ease, background 200ms ease, color 200ms ease; }
}
.shocx-auth-popup__phone { background: #fff; border-radius: 14px; }
.shocx-auth-popup__phone-prefix { color: #1a1a1a; }
.shocx-auth-popup .shocx-auth-popup__foot .submit-btn { transition: transform .12s ease-out, background .2s ease; }
.shocx-auth-popup .shocx-auth-popup__foot .submit-btn:active { transform: scale(.97); }
.shocx-auth-popup .submit-btn:disabled { opacity: 1; cursor: default; }
.shocx-auth-popup .submit-btn:disabled::after {
  display: inline-block !important;
  background-image: none;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  transform: none;
  animation: shocx-auth-spin .7s linear infinite;
}
@keyframes shocx-auth-spin { to { transform: rotate(360deg); } }
.shocx-auth-popup__body[data-auth-step="code"] { animation: shocx-auth-reveal .42s cubic-bezier(.23,1,.32,1) both; }
@keyframes shocx-auth-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
