/* auth-enter-20261012: окно входа. Сильнее старой плашки .enter-sheet. */

#enter-sheet {
  display: none !important;
}

#enter-sheet.is-open {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 200 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 24px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(22, 24, 28, 0.45) !important;
  box-shadow: none !important;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

html.auth-open,
html.auth-open body {
  overflow: hidden;
}

.auth-dim {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(400px, calc(100% - 32px));
  margin: auto;
  padding: 28px 28px 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 20, 24, 0.18);
  text-align: center;
  color: #29292c;
}

.auth-x {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9aa0a6;
  cursor: pointer;
}

.auth-x svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.auth-logo {
  display: block;
  height: 32px;
  width: auto;
  margin: 8px auto 0;
}

#auth-title {
  margin: 20px 0 6px;
  color: #29292c;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

#enter-sheet .auth-sub {
  margin: 0 !important;
  color: #9aa0a6;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.35;
}

#enter-sheet .auth-soc-label {
  margin: 28px 0 16px !important;
  color: #9aa0a6;
  font-size: 14px;
  font-weight: 450;
}

.auth-socs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.auth-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
}

.auth-soc svg {
  width: 28px;
  height: 28px;
  display: block;
}

.auth-soc svg { display: none; }

.auth-soc-vk,
.auth-soc-sber,
.auth-soc-ya {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 44px 44px;
  font-size: 0;
  color: transparent;
}

.auth-soc-t {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 0;
  color: transparent;
  overflow: visible;
}

.auth-soc-vk { background-image: url("/img/auth-vk.svg?v=20261012-vkid9"); }
.auth-soc-t { background-image: url("/img/auth-t.svg?v=20261012-vkid9"); }
.auth-soc-sber { background-image: url("/img/auth-sber.svg?v=20261012-vkid9"); }
.auth-soc-ya { background-image: url("/img/auth-ya.svg?v=20261012-vkid9"); }

.auth-soc-vk:hover { filter: brightness(1.05); }
.auth-soc-vk[aria-busy="true"] { opacity: 0.7; }

.auth-face { display: none !important; }

.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 8px 18px;
  color: #c5c8ce;
  font-size: 13px;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ececef;
}

.auth-phone {
  text-align: left;
}

#enter-sheet .auth-phone-label {
  display: block;
  margin: 0 2px 8px !important;
  color: #9aa0a6 !important;
  font-size: 14px;
  font-weight: 500;
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: #f3f4f6;
  color: #29292c;
}

.auth-field svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: #1c1c1e;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-cc {
  color: #1c1c1e;
  font-size: 16px;
  font-weight: 500;
}

.auth-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1c1c1e;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.auth-field input::placeholder { color: #b0b4ba; }

.auth-go,
.auth-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.auth-go {
  min-height: 52px;
  border-radius: 999px;
  background: #ffd302;
  color: #29292c;
  font-weight: 750;
}

.auth-go:hover { background: #f5c800; }
.auth-go:active { background: #e6bc00; }

.auth-face {
  min-height: 48px;
  background: #f3f4f6;
  color: #1c1c1e;
  font-size: 15px;
  font-weight: 550;
  gap: 8px;
}

.auth-face svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-note {
  min-height: 0;
  margin: 10px 0 0;
  color: #8e939a;
  font-size: 13px;
  line-height: 1.35;
}

.auth-note.is-bad { color: #c4322e; }
.auth-note.is-ok { color: #1c1c1e; }

#enter-sheet .auth-legal {
  margin: 20px 16px 2px !important;
  color: #9aa0a6 !important;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.5;
}

#enter-sheet .auth-legal a {
  color: #9aa0a6 !important;
  text-decoration-color: #9aa0a6;
}

@media (max-width: 899px) {
  #enter-sheet.is-open {
    padding: 0 !important;
    background: #fff !important;
    align-items: stretch;
  }

  #enter-sheet .auth-dim {
    background: #fff;
  }

  #enter-sheet .auth-card {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: calc(28px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #enter-sheet .auth-x,
  #enter-sheet .auth-x:focus,
  #enter-sheet .auth-x:focus-visible {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f2f4;
    color: #141418;
    outline: none;
    box-shadow: 0 0 0 1.5px #3d9bff, 0 0 0 4px rgba(61, 155, 255, 0.32);
  }

  #enter-sheet .auth-x svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
  }
}
