/* Auth modal — Steam only */

#root a,
#root button {
  cursor: pointer;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(48rem, 100%);
  min-width: 0;
  box-sizing: border-box;
  border-radius: 32px;
  padding: 8px 24px 8px 8px;
  border: 1px solid rgba(175, 168, 187, 0.05);
  background:
    radial-gradient(59.85% 62.2% at 0% 100%, rgba(233, 216, 255, 0.05) 0%, rgba(233, 216, 255, 0) 100%),
    radial-gradient(89.27% 67.96% at 0% 0%, rgba(233, 216, 255, 0.05) 0%, rgba(233, 216, 255, 0) 100%),
    radial-gradient(68.42% 106.76% at 100% 100%, rgba(233, 216, 255, 0.05) 0%, rgba(233, 216, 255, 0) 100%),
    radial-gradient(483.05% 141.42% at 100% 100%, rgba(233, 216, 255, 0.02) 0%, rgba(233, 216, 255, 0) 100%),
    rgba(9, 9, 9, 0.8);
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.3);
}

body:has(.auth-modal.is-open) [data-scope="toast"] {
  pointer-events: none !important;
  z-index: 0 !important;
}

.auth-modal__body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
  min-height: 260px;
}

.auth-modal__art {
  flex: 0 0 48%;
  width: 48%;
  min-width: 48%;
  border-radius: 24px;
  background-color: #16141a;
  background-size: cover;
  background-position: top center;
  padding: 16px;
  align-self: stretch;
  min-height: 260px;
}

.auth-modal.is-open .auth-modal__art {
  background-image: url("../img/warehouse-BMn6u6mW.webp");
}

.auth-modal__logo {
  height: 48px;
  width: auto;
  display: block;
}

.auth-modal__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 8px 16px;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.auth-modal__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.auth-modal__methods {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.auth-modal__subtitle {
  margin: 0;
  font-weight: 500;
  font-size: 1.125rem;
  color: rgba(241, 231, 255, 0.7);
  -webkit-font-smoothing: antialiased;
}

.auth-modal__providers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

button.bwiqb8d9fld4 {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 360px !important;
  min-width: 240px !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 24px !important;
  border-radius: 20px !important;
  position: relative !important;
  z-index: 3 !important;
  cursor: pointer !important;
  border: 1px solid rgba(174, 124, 247, 0.35) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(140% 120% at 12% 50%, #9b6cf5 0%, #734cbb 48%, #4d2a8f 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 24px rgba(115, 76, 187, 0.28) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transform: none !important;
  backface-visibility: hidden;
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.bwiqb8d9fld4:hover {
  filter: brightness(1.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 10px 28px rgba(115, 76, 187, 0.4);
}

.bwiqb8d9fld4:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.auth-steam-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, #8a5de0 0%, #48248a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  flex-shrink: 0;
}

.auth-steam-btn__icon svg {
  width: 22px;
  height: 22px;
  display: block;
  shape-rendering: geometricPrecision;
}

@media (max-width: 768px) {
  .auth-modal {
    padding: 8px;
    align-items: flex-start;
  }

  .auth-modal__dialog {
    padding: 8px 8px 24px;
    max-height: calc(100dvh - 16px);
    overflow: auto;
    border-radius: 24px;
  }

  .auth-modal__body {
    flex-direction: column;
  }

  .auth-modal__art {
    width: 100%;
    min-width: 100%;
    flex-basis: auto;
    min-height: 180px;
    background-position: center 35%;
  }
}
