.weirdo-login-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 17, 16, 0.72);
  z-index: 9999;
}

.weirdo-login-panel {
  width: min(466px, 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  background: #f7f6f5;
  border: 1px solid #121110;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #121110;
  color: #121110;
}

.weirdo-login-title,
.weirdo-mobile-user-title,
.weirdo-mobile-user-name {
  margin: 0;
  text-align: center;
  font-family: 'W2WFONT BRANDING', sans-serif;
  font-weight: 700;
  color: #121110;
}

.weirdo-login-title {
  font-size: 22px;
  line-height: 32px;
}

.weirdo-login-form,
.weirdo-social-buttons {
  display: flex;
  flex-direction: column;
}

.weirdo-login-form {
  gap: 20px;
}

.weirdo-social-buttons {
  gap: 12px;
}

.weirdo-social-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f7f6f5;
  border: 1px solid #121110;
  border-radius: 16px;
  box-shadow: 2px 2px 0 #121110;
  color: #121110;
  cursor: pointer;
  font-family: Barlow, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.weirdo-social-button:hover,
.weirdo-social-button:focus-visible {
  background: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #121110;
}

.weirdo-social-button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #121110;
}

.weirdo-social-button img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.weirdo-social-button span {
  font-weight: 700;
}

.weirdo-login-mobile-overlay {
  align-items: flex-end;
  padding: 0;
}

.weirdo-login-mobile-box {
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  border: 0;
  border-top: 1px solid #121110;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 0 #121110;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.weirdo-login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: #121110;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.weirdo-mobile-user-title {
  font-size: 18px;
  line-height: 28px;
}

.weirdo-mobile-user-name {
  font-size: 28px;
  line-height: 36px;
}

.weirdo-mobile-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.weirdo-mobile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 2px solid #121110;
  border-radius: 50%;
  object-fit: cover;
  background: #212121;
}

.weirdo-mobile-profile .weirdo-mobile-user-title,
.weirdo-mobile-profile .weirdo-mobile-user-name {
  text-align: left;
}

.weirdo-mobile-profile .weirdo-mobile-user-name {
  max-width: min(360px, calc(100vw - 132px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weirdo-mobile-logout-link {
  display: block;
  padding: 12px 16px;
  background: #ff8a00;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  font-family: Barlow, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .weirdo-login-panel {
    gap: 28px;
    padding: 40px 24px 32px;
  }

  .weirdo-login-title {
    padding: 0 28px;
    font-size: 18px;
    line-height: 28px;
  }

  .weirdo-social-button {
    min-height: 44px;
    box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  }

  .weirdo-social-button img {
    width: 20px;
    height: 20px;
  }
}
