/* 04-modals-auth.css — AUTH MODALS — MODERN LIGHT / PREMIUM RED GLASS */

/* GLOBAL MODAL LOCK */
html.modal-lock,
body.modal-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* HELPERS */
.hidden {
  display: none !important;
}

.authHintWrap {
  margin-top: 10px;
}

.hint {
  color: #7b7b7b;
  font-size: 13px;
  line-height: 1.5;
}

.hintTop {
  margin-top: 6px;
}

/* AUTH MODAL LAYER */
.authModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

.authModal.show {
  display: flex;
  pointer-events: auto;
}

.authBg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, .20) 0, transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(255, 77, 77, .10) 0, transparent 24%),
    rgba(18, 18, 22, .54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  animation: authOverlayIn .28s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes authOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* CARD */
.authCard {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88dvh, 920px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 30px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(245, 245, 245, .90) 100%);
  border: 1px solid rgba(32, 32, 32, .08);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .16),
    0 14px 34px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  color: #202020;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 77, 77, .22) transparent;
  transform: translateY(18px) scale(.985) translateZ(0);
  opacity: 0;
  animation: authCardIn .34s cubic-bezier(.2, .8, .2, 1) forwards;
}

.authCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .42);
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985) translateZ(0);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
  }
}

.authCard::-webkit-scrollbar {
  width: 10px;
}

.authCard::-webkit-scrollbar-thumb {
  background: rgba(255, 77, 77, .22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.authCard::-webkit-scrollbar-track {
  background: transparent;
}

/* CLOSE BTN */
.authClose {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(32, 32, 32, .10);
  background: rgba(255, 255, 255, .86);
  color: #2f2f35;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition:
    transform .28s cubic-bezier(.2, .8, .2, 1),
    background .28s cubic-bezier(.2, .8, .2, 1),
    border-color .28s cubic-bezier(.2, .8, .2, 1),
    box-shadow .28s cubic-bezier(.2, .8, .2, 1),
    color .28s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
  touch-action: manipulation;
  overflow: hidden;
  isolation: isolate;
}

.authClose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 77, 77, .14), rgba(255, 77, 77, 0));
  opacity: 0;
  transition: opacity .28s cubic-bezier(.2, .8, .2, 1);
  z-index: -1;
}

.authClose:hover {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(255, 77, 77, .18);
  color: #ff4d4d;
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, .08),
    0 0 0 8px rgba(255, 77, 77, .05);
}

.authClose:hover::before {
  opacity: 1;
}

.authClose:active {
  transform: scale(.98);
}

.authClose:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .92),
    0 0 0 6px rgba(255, 77, 77, .16);
}

/* TITLES */
.authH {
  margin: 0 0 8px;
  padding-right: 52px;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #202020;
}

.authSub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #4c4c4c;
}

/* SOCIAL BLOCK */
.socialAuthRow {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(32, 32, 32, .08);
  background: rgba(255, 255, 255, .68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 10px 24px rgba(0, 0, 0, .04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.socialAuthLabel {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7b7b7b;
}

.socialAuthIcons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ROUND SOCIAL ICONS */
.socialIcon,
.googleIcon,
.yandexIcon,
.mailruIcon,
.socialAuthIcons .tgDeepIcon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(32, 32, 32, .08);
  background: #fff;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .05);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  line-height: 1;
  transition:
    transform .28s cubic-bezier(.2, .8, .2, 1),
    border-color .28s cubic-bezier(.2, .8, .2, 1),
    box-shadow .28s cubic-bezier(.2, .8, .2, 1),
    background .28s cubic-bezier(.2, .8, .2, 1),
    filter .28s cubic-bezier(.2, .8, .2, 1);
}

.socialIcon:hover,
.googleIcon:hover,
.yandexIcon:hover,
.mailruIcon:hover,
.socialAuthIcons .tgDeepIcon:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, .08),
    0 0 0 8px rgba(255, 77, 77, .04);
  background: rgba(255, 255, 255, .96);
}

/* Google icon */
.googleIcon {
  border-color: rgba(66, 133, 244, .10);
}

.googleIcon:hover {
  border-color: rgba(66, 133, 244, .22);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, .08),
    0 0 0 8px rgba(66, 133, 244, .08);
}

.googleMark,
.googleDeepBtn__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #4285f4;
  line-height: 1;
}

.googleIcon .googleMark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(66, 133, 244, .10);
  font-size: 18px;
}

/* Yandex icon */
.yandexMark,
.yandexDeepBtn__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fc3f1d;
  line-height: 1;
}

.yandexIcon .yandexMark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(252, 63, 29, .08);
  font-size: 22px;
}

/* Mail.ru icon */
.mailruIcon {
  border-color: rgba(0, 95, 249, .10);
}

.mailruIcon:hover {
  border-color: rgba(0, 95, 249, .22);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, .08),
    0 0 0 8px rgba(0, 95, 249, .08);
}

.mailruMark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #005ff9;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

/* Telegram round icon */
.socialAuthIcons .tgDeepIcon {
  background: #26A5E4 !important;
  border-color: rgba(38, 165, 228, .20) !important;
}

.socialAuthIcons .tgDeepIcon:hover {
  box-shadow:
    0 14px 26px rgba(0, 0, 0, .10),
    0 0 0 8px rgba(38, 165, 228, .14);
  filter: saturate(1.05) brightness(1.02);
}

.socialAuthIcons .tgDeepIcon .tgDeepMark {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

.socialAuthIcons .tgDeepIcon svg,
.socialAuthIcons .tgDeepIcon .tgDeepSvg {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.socialMsg {
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
  color: #b91c1c;
  line-height: 1.45;
}

/* DEEP / STACK SOCIAL BUTTONS */
.socialAuthRow--stack {
  display: grid;
  gap: 12px;
}

.googleDeepBtn,
.yandexDeepBtn,
.mailruDeepBtn,
.socialAuthRow--stack .tgDeepIcon {
  min-height: 54px;
  width: 100%;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid rgba(32, 32, 32, .08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: #202020;
  font-weight: 800;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.googleDeepBtn:hover,
.yandexDeepBtn:hover,
.mailruDeepBtn:hover,
.socialAuthRow--stack .tgDeepIcon:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
  border-color: rgba(255, 77, 77, .22);
  background: rgba(255, 255, 255, .96);
}

.googleDeepBtn__mark,
.yandexDeepBtn__mark,
.mailruDeepBtn__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
}

.googleDeepBtn__mark {
  background: rgba(66, 133, 244, .10);
  color: #4285f4;
  font-size: 18px;
}

.yandexDeepBtn__mark {
  background: rgba(252, 63, 29, .08);
  color: #fc3f1d;
  font-size: 22px;
}

.mailruDeepBtn__mark {
  background: #005ff9;
  color: #fff;
  font-size: 21px;
}

.socialAuthRow--stack .tgDeepIcon {
  background: #fff;
  color: #202020;
}

.socialAuthRow--stack .tgDeepIcon .tgDeepMark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #26A5E4;
  color: #fff;
  flex: 0 0 34px;
}

.socialAuthRow--stack .tgDeepIcon svg,
.socialAuthRow--stack .tgDeepIcon .tgDeepSvg {
  width: 20px;
  height: 20px;
  display: block;
}

.googleDeepBtn__text,
.yandexDeepBtn__text,
.mailruDeepBtn__text,
.tgDeepText {
  color: #202020;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
}

/* MESSAGES */
.msgBox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid transparent;
}

.msgBox .ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

.msgErr {
  color: #8f1d1d;
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .16);
}

.msgErr .ico {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
}

.msgOk {
  color: #166534;
  background: rgba(34, 197, 94, .08);
  border-color: rgba(34, 197, 94, .16);
}

.msgOk .ico {
  background: rgba(34, 197, 94, .12);
  color: #15803d;
}

/* FORM */
.authForm {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
  color: #202020;
}

.input,
.authForm input[type="text"],
.authForm input[type="email"],
.authForm input[type="password"],
.authForm input[type="tel"] {
  width: 100%;
  min-width: 0;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(32, 32, 32, .10);
  background: rgba(255, 255, 255, .92);
  padding: 0 16px;
  font-size: 15px;
  color: #202020;
  outline: none;
  transition:
    border-color .24s cubic-bezier(.2, .8, .2, 1),
    box-shadow .24s cubic-bezier(.2, .8, .2, 1),
    background .24s cubic-bezier(.2, .8, .2, 1),
    transform .24s cubic-bezier(.2, .8, .2, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.input::placeholder,
.authForm input::placeholder {
  color: rgba(95, 100, 112, .78);
}

.input:focus,
.authForm input:focus {
  border-color: rgba(255, 77, 77, .28);
  box-shadow:
    0 0 0 4px rgba(255, 77, 77, .10),
    0 8px 18px rgba(255, 77, 77, .04);
  background: #fff;
}

.noShadow {
  box-shadow: none !important;
}

/* CHECKBOX */
.checkbox-field {
  margin-top: 2px;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.58;
  color: #4c4c4c;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-custom {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1px solid rgba(32, 32, 32, .10);
  background: #fff;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  transition:
    transform .24s cubic-bezier(.2, .8, .2, 1),
    border-color .24s cubic-bezier(.2, .8, .2, 1),
    box-shadow .24s cubic-bezier(.2, .8, .2, 1),
    background .24s cubic-bezier(.2, .8, .2, 1);
}

.checkbox-label:hover .check-custom {
  border-color: rgba(255, 77, 77, .20);
  box-shadow: 0 0 0 4px rgba(255, 77, 77, .05);
}

.checkbox-label input[type="checkbox"]:checked + .check-custom {
  background: linear-gradient(180deg, #ff5a5a 0%, #ff4d4d 100%);
  border-color: transparent;
  box-shadow:
    0 10px 20px rgba(255, 77, 77, .22),
    0 0 0 6px rgba(255, 77, 77, .08);
}

.checkbox-label input[type="checkbox"]:checked + .check-custom::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label a {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: 700;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* BUTTONS */
.btn,
.authBtnFull {
  appearance: none;
  outline: none;
  cursor: pointer;
  transition:
    transform .30s cubic-bezier(.2, .8, .2, 1),
    box-shadow .30s cubic-bezier(.2, .8, .2, 1),
    opacity .24s cubic-bezier(.2, .8, .2, 1),
    border-color .30s cubic-bezier(.2, .8, .2, 1),
    background .30s cubic-bezier(.2, .8, .2, 1),
    color .30s cubic-bezier(.2, .8, .2, 1);
}

.authBtnFull {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
}

.btn.primary,
.authBtnFull,
.authForm .btn.primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #ff5a5a 0%, #ff4d4d 100%);
  box-shadow:
    0 18px 40px rgba(255, 77, 77, .22),
    inset 0 1px 0 rgba(255, 255, 255, .20);
}

.btn.primary::before,
.authBtnFull::before,
.authForm .btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transform: translateY(12%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #ff3c3c 0%, #f90202 100%);
  transition:
    opacity .30s cubic-bezier(.2, .8, .2, 1),
    transform .30s cubic-bezier(.2, .8, .2, 1);
}

.btn.primary:hover,
.authBtnFull:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(255, 77, 77, .28),
    0 0 0 10px rgba(255, 77, 77, .08);
}

.btn.primary:hover::before,
.authBtnFull:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.btn.primary:active,
.authBtnFull:active {
  transform: scale(.985);
}

.authBtnFull:focus-visible,
.btn.primary:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .92),
    0 0 0 6px rgba(255, 77, 77, .16),
    0 18px 40px rgba(255, 77, 77, .22);
}

.authBtnFull.loading,
.btn.loading,
.authBtnFull:disabled,
.btn:disabled {
  opacity: .8;
  pointer-events: none;
}

/* LINKS / SWITCHES */
.authRowLinks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.authSwitch {
  margin-top: 4px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #4c4c4c;
}

.authLinkBtn {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #ff4d4d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition:
    color .24s cubic-bezier(.2, .8, .2, 1),
    opacity .24s cubic-bezier(.2, .8, .2, 1);
}

.authLinkBtn:hover {
  color: #f90202;
  text-decoration: underline;
}

/* TURNSTILE */
.tsBox {
  margin: 2px 0 2px;
}

.tsMount {
  display: flex;
  justify-content: center;
  min-height: 66px;
}

/* MOBILE MENU ACTIONS */
#iviHeader .iviMMenu .iviMActions {
  display: grid !important;
  gap: 12px !important;
  padding-top: 14px !important;
  margin-top: 14px !important;
  border-top: 1px solid rgba(32, 32, 32, .08) !important;
}

#iviHeader .iviMMenu .iviMActions .iviBtn {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  height: 48px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
  text-decoration: none !important;
  transition:
    transform .28s cubic-bezier(.2, .8, .2, 1),
    box-shadow .28s cubic-bezier(.2, .8, .2, 1),
    border-color .28s cubic-bezier(.2, .8, .2, 1),
    background .28s cubic-bezier(.2, .8, .2, 1),
    color .28s cubic-bezier(.2, .8, .2, 1) !important;
}

#iviHeader .iviMMenu .iviMActions .iviBtn--ghost {
  background: rgba(255, 255, 255, .72) !important;
  color: rgba(18, 18, 22, .92) !important;
  border: 1px solid rgba(32, 32, 32, .10) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .05) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

#iviHeader .iviMMenu .iviMActions .iviBtn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .92) !important;
  color: #ff4d4d !important;
  border-color: rgba(255, 77, 77, .18) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .08),
    0 0 0 8px rgba(255, 77, 77, .05) !important;
}

#iviHeader .iviMMenu .iviMActions .iviBtn--ghost:active {
  transform: scale(.985);
}

#iviHeader .iviMMenu .iviMActions .iviBtn--solid {
  border: 1px solid transparent !important;
  color: #fff !important;
  background: linear-gradient(180deg, #ff5a5a 0%, #ff4d4d 100%) !important;
  box-shadow:
    0 18px 40px rgba(255, 77, 77, .22),
    inset 0 1px 0 rgba(255, 255, 255, .20) !important;
}

#iviHeader .iviMMenu .iviMActions .iviBtn--solid:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ff3c3c 0%, #f90202 100%) !important;
  box-shadow:
    0 22px 42px rgba(255, 77, 77, .28),
    0 0 0 10px rgba(255, 77, 77, .08) !important;
}

#iviHeader .iviMMenu .iviMActions .iviBtn--solid:active {
  transform: scale(.985);
}

#iviHeader .iviMMenu .iviMActions .iviBtn:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .92),
    0 0 0 6px rgba(255, 77, 77, .16) !important;
}

/* MOBILE */
@media (max-width: 768px) {
  .socialIcon,
  .googleIcon,
  .yandexIcon,
  .mailruIcon,
  .socialAuthIcons .tgDeepIcon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .googleIcon .googleMark,
  .yandexIcon .yandexMark,
  .mailruMark {
    width: 28px;
    height: 28px;
  }

  .googleIcon .googleMark {
    font-size: 17px;
  }

  .yandexIcon .yandexMark {
    font-size: 20px;
  }

  .mailruMark {
    font-size: 18px;
  }

  .socialAuthIcons .tgDeepIcon svg,
  .socialAuthIcons .tgDeepIcon .tgDeepSvg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 640px) {
  .authModal {
    padding: 12px;
    align-items: flex-end;
  }

  .authCard {
    width: 100%;
    max-height: min(92dvh, calc(100dvh - 12px));
    border-radius: 24px 24px 0 0;
    padding: 22px 16px 18px;
  }

  .authClose {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .authH {
    font-size: 26px;
    padding-right: 46px;
  }

  .authSub {
    font-size: 13px;
  }

  .authRowLinks {
    flex-direction: column;
    align-items: flex-start;
  }

  .socialAuthRow {
    padding: 14px;
    border-radius: 18px;
  }

  .input,
  .authForm input[type="text"],
  .authForm input[type="email"],
  .authForm input[type="password"],
  .authForm input[type="tel"] {
    height: 50px;
    font-size: 16px;
  }

  .googleDeepBtn,
  .yandexDeepBtn,
  .mailruDeepBtn,
  .socialAuthRow--stack .tgDeepIcon {
    min-height: 52px;
    border-radius: 16px;
  }
}

.maxIconMark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.maxIconSvg {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}