@import 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap';
* {
  padding: 0;
  margin: 0;
  border: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:focus,
\:active {
  outline: none;
}

a,
a:link,
a:visited {
  text-decoration: none;
}
a:hover,
a:link:hover,
a:visited:hover {
  text-decoration: none;
}

aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input::-ms-clear {
  display: none;
}

button,
input[type=submit] {
  display: inline-block;
  box-shadow: none;
  background: transparent none;
  cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

body {
  background-color: #1E1E1E;
  font-family: "Inter", sans-serif;
  color: #FFF;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1E1E1E;
}

::-webkit-scrollbar-thumb {
  background: #E270BB;
  border-radius: 12px;
}

.text--highlighted {
  color: #E270BB;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 0 20px;
}
.container--mobile {
  max-width: 450px;
}

.btn {
  background-color: #E270BB;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
}
.btn:disabled {
  cursor: not-allowed;
  background-color: #848282;
}
.btn__text {
  margin: 0 auto;
}
.btn--wide {
  width: 100%;
}
.btn--outline {
  background: none;
  border: #E270BB 3px solid;
}

.header {
  position: sticky;
  width: 100%;
  top: 0;
  display: flex;
  background-color: #1E1E1E;
  padding: 10px 25px;
  gap: 25px;
  border-bottom: #2d2d2d 1px solid;
  z-index: 1;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E270BB;
}
.header__logo-image {
  max-width: 30px;
}
.header__logo-name {
  font-size: 1.25em;
  font-weight: 600;
}
.header__navigation {
  display: flex;
  gap: 30px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
.header__navigation--login {
  right: 70px;
}
.header__navigation-btn {
  display: flex;
  align-items: center;
  gap: 5px;
}
.header__navigation-btn-text {
  color: #848282;
  font-size: 0.875em;
}
.header__navigation-btn_active span {
  color: #E270BB;
}
.header__navigation-btn_active svg {
  fill: #E270BB;
}
.header__shop-items {
  display: flex;
  gap: 10px;
  margin: 0 0 0 auto;
}
.header__shop-button {
  display: flex;
  background-color: #29bae7;
  color: #FFF;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 5px 15px;
  border-radius: 12px;
}
.header__shop-text {
  font-weight: 600;
  font-size: 0.875em;
  white-space: nowrap;
}
.header__balance {
  background-color: #252525;
  border: #2d2d2d 1px solid;
  padding: 10px;
  align-items: center;
  border-radius: 12px;
  display: flex;
  gap: 8px;
}
.header__balance-icon {
  max-width: 25px;
}
.header__balance-count {
  color: #FFF;
  font-weight: 500;
}
.header__balance-plus {
  display: none;
}
.header__login-btn {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 0 0 0 auto;
  padding: 10px 15px;
  background-color: #E270BB;
  border-radius: 12px;
}
.header__login-btn-text {
  color: #FFF;
  font-weight: 600;
}

.popup {
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  transition: all 0.5s;
}
.popup:target, .popup_active {
  opacity: 1;
  visibility: visible;
}
.popup:target .popup__content, .popup_active .popup__content {
  transform: scale(100%);
}
.popup__body {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup__content {
  width: 100%;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  max-height: 90vh;
  overflow-x: auto;
  background-color: #1E1E1E;
  transition: transform 0.5s;
  transform: scale(80%);
}
.popup__content--fullscreen {
  max-width: none;
}
.popup__area {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.popup__title {
  margin: 0 auto;
  max-width: 450px;
  display: flex;
  font-size: 1.5em;
  text-align: center;
  font-weight: 600;
}
.popup__cross-btn {
  margin-left: auto;
}
.popup__cross-btn img {
  height: 100%;
}

.choice {
  max-width: 450px;
  margin: 0 auto 0 auto;
}
.choice__title {
  display: flex;
  font-size: 1.5em;
  text-align: center;
  font-weight: 600;
}
.choice__items {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-direction: column;
}
.choice__items-sections {
  display: flex;
  gap: 20px;
}
.choice__items-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 10px;
}
.choice__item {
  display: flex;
  gap: 20px;
  padding: 10px 15px;
  border: #2d2d2d solid 1px;
  border-radius: 12px;
  background-color: #252525;
  color: #FFF;
  width: 100%;
  text-align: left;
}
.choice__item-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.choice__item-icon {
  max-width: 50px;
  object-fit: contain;
}
.choice__item-title {
  font-weight: 600;
  font-size: 1.125em;
}
.choice__item-description {
  margin-top: 5px;
  color: #848282;
}

.shop__btn {
  margin-top: 20px;
  display: flex;
  color: #FFF;
}
.shop__btn:disabled {
  cursor: not-allowed;
  background-color: #848282;
}
.shop__title {
  font-weight: 600;
  text-align: center;
  font-size: 1.5em;
}
.shop__items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.shop__items-section {
  display: flex;
  gap: 15px;
  justify-content: center;
}
.shop__items-section:nth-child(1) .shop__item:nth-child(1) {
  background: url("../images/shop-1.48409ed8cec8.webp") no-repeat center center #252525;
}
.shop__items-section:nth-child(1) .shop__item:nth-child(2) {
  background: url("../images/shop-2.ab58312a9c6c.webp") no-repeat center center #252525;
}
.shop__items-section:nth-child(2) .shop__item:nth-child(1) {
  background: url("../images/shop-3.3b8178f2f6d5.webp") no-repeat center center #252525;
}
.shop__items-section:nth-child(2) .shop__item:nth-child(2) {
  background: url("../images/shop-4.4ef00cfeef11.webp") no-repeat center center #252525;
}
.shop__items-section:nth-child(3) .shop__item:nth-child(1) {
  background: url("../images/shop-5.d68218efae89.webp") no-repeat center center #252525;
}
.shop__items-section:nth-child(3) .shop__item:nth-child(2) {
  background: url("../images/shop-6.c27c88856178.webp") no-repeat center center #252525;
}
.shop__item:nth-child(1):nth-child(1) {
  background: url("../images/shop-1.48409ed8cec8.webp") no-repeat center center #252525;
}
.shop__item:nth-child(2):nth-child(2) {
  background: url("../images/shop-2.ab58312a9c6c.webp") no-repeat center center #252525;
}
.shop__item:nth-child(3):nth-child(3) {
  background: url("../images/shop-3.3b8178f2f6d5.webp") no-repeat center center #252525;
}
.shop__item:nth-child(4):nth-child(4) {
  background: url("../images/shop-4.4ef00cfeef11.webp") no-repeat center center #252525;
}
.shop__item:nth-child(5):nth-child(5) {
  background: url("../images/shop-5.d68218efae89.webp") no-repeat center center #252525;
}
.shop__item:nth-child(6):nth-child(6) {
  background: url("../images/shop-6.c27c88856178.webp") no-repeat center center #252525;
}
.shop__item {
  background-size: 80% !important;
  object-fit: cover;
  overflow: hidden;
  width: 160px;
  border: #2d2d2d 1px solid;
  border-radius: 12px;
  color: #FFF;
  transition: border 0.1s, border-color 0s;
}
.shop__item_selected {
  border: #E270BB 2px solid;
}
.shop__item-info {
  display: flex;
  justify-content: space-between;
}
.shop__discount {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-transform: uppercase;
  position: relative;
  font-size: 0.625em;
  font-weight: 600;
  right: 55px;
  bottom: 82px;
  padding-bottom: 5px;
  width: 100%;
  background: #E270BB;
  transform: rotate(-45deg);
}
.shop__terms {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  text-align: right;
}
.shop__count {
  margin-right: 5px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}
.shop__count-number {
  font-size: 40px;
}
.shop__price {
  margin: 20px 0 10px 0;
  padding: 5px 10px;
  border-radius: 999px 0 0 999px;
  font-weight: 600;
  font-size: 0.875em;
  background-color: #E270BB;
}
.shop__sub-title {
  font-weight: 600;
  font-size: 1.125em;
  margin-left: 5px;
}
.shop__currency {
  margin: 20px auto;
  max-width: 400px;
}
.shop__currency-btns {
  display: flex;
  margin-top: 15px;
  gap: 10px;
}
.shop__currency-btn {
  width: 40px;
  height: 40px;
  font-weight: 600;
  font-size: 1.125em;
  background-color: #252525;
  border-radius: 9999px;
}
.shop__currency-btn_selected {
  border: #E270BB solid 2px;
}
.shop__currency-btn:disabled {
  display: none;
}
.shop__payment-method {
  margin-top: 10px;
  width: 100%;
  max-width: 250px;
  padding: 8px;
  border: 2px solid #2d2d2d;
  border-radius: 12px;
  background-color: #252525;
}
.shop__payment-method:focus {
  outline: none;
  border-color: #E270BB;
}

.footer {
  background-color: #252525;
}
.footer__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1200px;
  margin: 100px auto 0 auto;
  padding: 20px 30px;
  border-color: #2d2d2d;
  border-radius: 12px 12px 0 0;
}
.footer__links {
  display: flex;
}
.footer__column {
  flex: 1;
  min-width: 200px;
}
.footer__title {
  margin-bottom: 10px;
}
.footer__link {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #848282;
  transition: color 0.3s ease;
}
.footer__link:hover {
  color: #fff;
}
.footer__copyright {
  background-color: #252525;
  color: #848282;
  font-size: 0.85em;
  margin-top: 20px;
}
.footer__navigation {
  display: none;
}
.footer__navigation-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.75em;
  align-items: center;
  color: #848282;
  font-weight: 500;
}
.footer__navigation-btn_active {
  color: #E270BB;
}
.footer__navigation-btn_active svg {
  fill: #E270BB;
}

.sign__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.sign__content_center {
  height: 85vh;
}
.sign__logo-image {
  max-height: 135px;
}
.sign__forms {
  width: 100%;
}
.sign__form {
  display: none;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}
.sign__form_active {
  display: flex;
}
.sign__input-field {
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  background-color: #252525;
  padding: 14px 20px;
  width: 100%;
  transition: border-color 0.25s;
}
.sign__input-field:focus {
  border-color: #E270BB;
}
.sign__error-text {
  color: #E270BB;
  font-weight: 500;
}
.sign__link {
  color: #E270BB;
  font-weight: 600;
}
.sign__link:hover {
  border-bottom: #E270BB 2px solid;
}
.sign__tabs {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}
.sign__btn {
  width: 100%;
  border-radius: 12px;
  text-align: center;
  color: #FFF;
}
.sign__btn-text {
  font-weight: 600;
}
.sign__btn-tab {
  display: block;
  font-weight: 600;
  color: #848282;
}
.sign__btn-tab_active {
  color: #E270BB;
}

@media (max-width: 768px) {
  .header__shop-button {
    display: none;
  }
  .header__balance {
    padding: 5px 10px;
  }
  .header__balance-plus {
    display: block;
  }
  .header__navigation {
    display: none;
  }
  .header__balance {
    margin-left: auto;
  }
  .footer {
    margin-bottom: 65px;
  }
  .footer__navigation {
    display: flex;
    justify-content: space-evenly;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #252525;
    text-align: center;
    padding: 10px 0;
  }
  .popup__body {
    align-items: end;
  }
  .popup__content {
    border-radius: 12px 12px 0 0;
    transform: scale(100%) translate(0, 100%);
    max-width: none;
  }
  .popup:target .popup__content {
    transform: translate(0, 0);
  }
}

/* ==================== Auth: страница /sign/ и попап #sign ==================== */
.auth-page__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

.auth {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(226, 112, 187, 0.16), transparent 60%),
    #1b1b1b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth__brand-logo {
  width: 34px;
  height: 34px;
}

.auth__brand-name {
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.auth__title {
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.25;
}

.auth__subtitle {
  margin: 0;
  color: #9b9c9f;
  font-size: 0.86em;
  line-height: 1.45;
}

.auth__oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background-color: #fff;
  color: #1f1f1f;
  font-size: 0.95em;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth__oauth:hover {
  background-color: #f7f7f7;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.auth__oauth:active {
  transform: translateY(0);
}

.auth__oauth:focus-visible {
  outline: 2px solid #E270BB;
  outline-offset: 2px;
}

.auth__oauth-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.auth__oauth-icon svg {
  width: 20px;
  height: 20px;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #848282;
  font-size: 0.78em;
  font-weight: 600;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.09);
}

.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  background-color: #252525;
}

.auth__tab {
  padding: 10px 12px;
  border-radius: 9px;
  color: #9b9c9f;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth__tab:hover {
  color: #fff;
}

.auth__tab_active,
.auth__tab_active:hover {
  color: #fff;
  background: linear-gradient(135deg, #E270BB, #b4528f);
  box-shadow: 0 6px 16px rgba(226, 112, 187, 0.28);
}

.auth__tab:focus-visible {
  outline: 2px solid #E270BB;
  outline-offset: 2px;
}

.auth__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(226, 112, 187, 0.35);
  border-radius: 12px;
  background-color: rgba(226, 112, 187, 0.1);
  color: #f6d3ea;
  font-size: 0.86em;
  font-weight: 500;
  line-height: 1.4;
}

.auth__alert-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #E270BB;
}

.auth__forms {
  width: 100%;
}

.auth__form {
  gap: 14px;
}

.auth__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth__label {
  color: #a9a7a7;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.auth__control {
  position: relative;
  display: flex;
  align-items: center;
}

.auth__control-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #7b7979;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth__control:focus-within .auth__control-icon {
  color: #E270BB;
}

.auth__input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  background-color: #252525;
  color: #fff;
  font-family: inherit;
  font-size: 0.95em;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth__input::placeholder {
  color: #6f6d6d;
}

.auth__input:hover {
  border-color: #3a3a3a;
}

.auth__input:focus {
  outline: none;
  border-color: #E270BB;
  background-color: #282828;
  box-shadow: 0 0 0 3px rgba(226, 112, 187, 0.18);
}

.auth__control_password .auth__input {
  padding-right: 48px;
}

.auth__toggle {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #848282;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.auth__toggle:hover {
  color: #E270BB;
  background-color: rgba(226, 112, 187, 0.1);
}

.auth__toggle:focus-visible {
  outline: 2px solid #E270BB;
  outline-offset: -2px;
}

.auth__toggle-icon {
  width: 19px;
  height: 19px;
}

.auth__toggle-icon_hide {
  display: none;
}

.auth__toggle_active .auth__toggle-icon_show {
  display: none;
}

.auth__toggle_active .auth__toggle-icon_hide {
  display: block;
}

.auth__field-error {
  margin: 0;
  color: #E270BB;
  font-size: 0.78em;
}

.auth__submit {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E270BB, #c25a9b);
  font-size: 0.95em;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(226, 112, 187, 0.25);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.auth__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(226, 112, 187, 0.32);
}

.auth__submit:active {
  transform: translateY(0);
}

.auth__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.auth__guest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px dashed #3a3a3a;
  border-radius: 12px;
  color: #b9b7b7;
  font-size: 0.86em;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth__guest:hover {
  color: #E270BB;
  border-color: rgba(226, 112, 187, 0.6);
  background-color: rgba(226, 112, 187, 0.06);
}

.auth__guest-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.auth__legal {
  margin: 0;
  color: #7c7a7a;
  font-size: 0.72em;
  line-height: 1.5;
  text-align: center;
}

.auth__legal-link {
  color: #b9a3b2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth__legal-link:hover {
  color: #E270BB;
}

/* Попап: карточку рисует .auth, у .popup__content убираем фон и паддинги */
.popup__content_auth {
  position: relative;
  max-width: 420px;
  padding: 0;
  background: transparent;
  border-radius: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.popup__content_auth .auth {
  padding: 26px 22px;
}

.auth__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s ease;
}

.auth__close:hover {
  background-color: rgba(226, 112, 187, 0.16);
}

.auth__close img {
  opacity: 0.75;
}

@media (max-width: 480px) {
  .auth-page__main {
    padding: 20px 12px 32px;
  }
  .auth,
  .popup__content_auth .auth {
    padding: 22px 16px;
    border-radius: 16px;
  }
  .auth__title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .popup__content_auth {
    border-radius: 18px 18px 0 0;
  }
  .popup__content_auth .auth {
    border-radius: 18px 18px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth *,
  .auth *::before,
  .auth *::after {
    transition: none !important;
  }
}

/* Контент страниц django-allauth внутри карточки .auth */
.auth__messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth__allauth {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth__allauth h1,
.auth__allauth h2,
.auth__allauth h3 {
  margin: 0;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.auth__allauth p {
  margin: 0;
  color: #9b9c9f;
  font-size: 0.86em;
  line-height: 1.5;
}

.auth__allauth form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth__allauth form p {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: inherit;
  font-size: 1em;
}

.auth__allauth form .auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth__allauth form .auth-field_inline {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.auth__allauth .auth-field__error {
  flex: 1 0 100%;
  margin: 0;
  color: #E270BB;
  font-size: 0.78em;
}

.auth__allauth label {
  color: #a9a7a7;
  font-size: 0.78em;
  font-weight: 600;
}

.auth__allauth input:not([type="checkbox"]):not([type="radio"]),
.auth__allauth textarea,
.auth__allauth select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  background-color: #252525;
  color: #fff;
  font-family: inherit;
  font-size: 0.95em;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth__allauth input:not([type="checkbox"]):not([type="radio"]):focus,
.auth__allauth textarea:focus,
.auth__allauth select:focus {
  outline: none;
  border-color: #E270BB;
  background-color: #282828;
  box-shadow: 0 0 0 3px rgba(226, 112, 187, 0.18);
}

.auth__allauth textarea {
  min-height: 110px;
  resize: vertical;
}

.auth__allauth input[type="checkbox"],
.auth__allauth input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #E270BB;
}

.auth__allauth button {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E270BB, #c25a9b);
  color: #fff;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(226, 112, 187, 0.25);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.auth__allauth button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth__allauth a {
  color: #E270BB;
}

.auth__allauth ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth__allauth hr {
  height: 1px;
  margin: 2px 0;
  border: 0;
  background-color: rgba(255, 255, 255, 0.09);
}

.auth__allauth .errorlist {
  margin: 0;
  padding: 0;
  color: #E270BB;
  font-size: 0.78em;
  list-style: none;
}

.auth__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}

.auth__menu-link {
  padding: 7px 12px;
  border: 1px solid #2d2d2d;
  border-radius: 999px;
  color: #b9b7b7;
  font-size: 0.75em;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.auth__menu-link:hover {
  color: #E270BB;
  border-color: rgba(226, 112, 187, 0.5);
}

/* Значок 18+, кастомные чекбоксы и кнопки провайдеров на страницах allauth */
.auth__legal-age {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 6px;
  border: 1px solid rgba(226, 112, 187, 0.45);
  border-radius: 6px;
  color: #E270BB;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: baseline;
}

.auth__allauth input[type="checkbox"],
.auth__allauth input[type="radio"] {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background-color: #252525;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth__allauth input[type="radio"] {
  border-radius: 50%;
}

.auth__allauth input[type="checkbox"]:hover,
.auth__allauth input[type="radio"]:hover {
  border-color: #5a5a5a;
}

.auth__allauth input[type="checkbox"]:checked,
.auth__allauth input[type="radio"]:checked {
  border-color: #E270BB;
  background: linear-gradient(135deg, #E270BB, #c25a9b);
}

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

.auth__allauth input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
}

.auth__allauth input[type="checkbox"]:focus-visible,
.auth__allauth input[type="radio"]:focus-visible {
  outline: 2px solid #E270BB;
  outline-offset: 2px;
}

.auth__allauth ul a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background-color: #202020;
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth__allauth ul a:hover {
  color: #E270BB;
  border-color: rgba(226, 112, 187, 0.55);
  background-color: rgba(226, 112, 187, 0.06);
}

.auth__allauth ul a[title="Google"]::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Подсказки под полями (требования к паролю) на страницах allauth */
.auth__allauth .helptext {
  display: block;
  margin-top: 2px;
  color: #7c7a7a;
  font-size: 0.78em;
  line-height: 1.45;
}

.auth__allauth .helptext ul {
  margin: 4px 0 0;
  gap: 4px;
}

/* Чекбокс/радио — в одну строку с подписью */
.auth__allauth form p:has(> input[type="checkbox"]),
.auth__allauth form p:has(> input[type="radio"]),
.auth__allauth form .auth-field:has(> input[type="checkbox"]),
.auth__allauth form .auth-field:has(> input[type="radio"]) {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.auth__allauth form p:empty {
  display: none;
}

/* Удаление аккаунта: опасная зона */
.auth__submit_danger {
  background: linear-gradient(135deg, #E2515F, #B03A42);
  box-shadow: 0 10px 24px rgba(226, 81, 95, 0.32);
}

.auth__submit_danger:hover {
  box-shadow: 0 14px 28px rgba(226, 81, 95, 0.42);
}

.auth__submit_danger:focus-visible {
  outline-color: #E2515F;
}

.danger-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.danger-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #B9B7B7;
  font-size: 0.9em;
  line-height: 1.5;
}

.danger-list__item svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #E270BB;
}

.danger-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(226, 112, 187, 0.3);
  border-radius: 12px;
  background-color: rgba(226, 112, 187, 0.08);
  color: #F6D3EA;
  font-size: 0.84em;
  line-height: 1.5;
}

.footer__link_danger:hover {
  color: #E2515F;
}

.files-danger {
  display: flex;
  justify-content: center;
  margin: 40px 0 8px;
}

.files-danger__link {
  color: #7C7A7A;
  font-size: 0.82em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.files-danger__link:hover {
  color: #E270BB;
}
